Implemented negation
This commit is contained in:
parent
c2f6aa1a08
commit
4ded8260b3
11 changed files with 136 additions and 21 deletions
8
src/build/arch/x64/Negate.go
Normal file
8
src/build/arch/x64/Negate.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package x64
|
||||
|
||||
import "git.akyoto.dev/cli/q/src/build/cpu"
|
||||
|
||||
// NegateRegister negates the value in the register.
|
||||
func NegateRegister(code []byte, register cpu.Register) []byte {
|
||||
return encode(code, AddressDirect, 0b011, register, 8, 0xF7)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue