Improved function names
This commit is contained in:
parent
37e222e022
commit
871ebc147f
19 changed files with 94 additions and 114 deletions
|
@ -4,12 +4,12 @@ import (
|
|||
"git.akyoto.dev/cli/q/src/build/cpu"
|
||||
)
|
||||
|
||||
// SubRegNum subtracts a number from the given register.
|
||||
func SubRegNum(code []byte, destination cpu.Register, number int) []byte {
|
||||
return numRegReg(code, 0b101, byte(destination), number, 0x83, 0x81)
|
||||
// SubRegisterNumber subtracts a number from the given register.
|
||||
func SubRegisterNumber(code []byte, destination cpu.Register, number int) []byte {
|
||||
return regRegNum(code, 0b101, byte(destination), number, 0x83, 0x81)
|
||||
}
|
||||
|
||||
// SubRegReg subtracts a register value from another register.
|
||||
func SubRegReg(code []byte, destination cpu.Register, operand cpu.Register) []byte {
|
||||
// SubRegisterRegister subtracts a register value from another register.
|
||||
func SubRegisterRegister(code []byte, destination cpu.Register, operand cpu.Register) []byte {
|
||||
return regReg(code, byte(operand), byte(destination), 0x29)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue