Improved function names
This commit is contained in:
parent
37e222e022
commit
871ebc147f
19 changed files with 94 additions and 114 deletions
|
@ -2,8 +2,8 @@ package x64
|
|||
|
||||
import "git.akyoto.dev/cli/q/src/build/cpu"
|
||||
|
||||
// PopReg pops a value from the stack and saves it into the register.
|
||||
func PopReg(code []byte, register cpu.Register) []byte {
|
||||
// PopRegister pops a value from the stack and saves it into the register.
|
||||
func PopRegister(code []byte, register cpu.Register) []byte {
|
||||
if register >= 8 {
|
||||
code = append(code, REX(0, 0, 0, 1))
|
||||
register -= 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue