Renamed x64 to x86
This commit is contained in:
parent
f558a69366
commit
9c53235e7e
80 changed files with 1757 additions and 1757 deletions
15
src/x86/Sub.go
Normal file
15
src/x86/Sub.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package x86
|
||||
|
||||
import (
|
||||
"git.akyoto.dev/cli/q/src/cpu"
|
||||
)
|
||||
|
||||
// SubRegisterNumber subtracts a number from the given register.
|
||||
func SubRegisterNumber(code []byte, register cpu.Register, number int) []byte {
|
||||
return encodeNum(code, AddressDirect, 0b101, register, number, 0x83, 0x81)
|
||||
}
|
||||
|
||||
// SubRegisterRegister subtracts a register value from another register.
|
||||
func SubRegisterRegister(code []byte, register cpu.Register, operand cpu.Register) []byte {
|
||||
return encode(code, AddressDirect, operand, register, 8, 0x29)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue