Implemented negation

This commit is contained in:
2024-07-28 15:42:51 +02:00
parent 6861ae9a90
commit bb74c0cf50
11 changed files with 136 additions and 21 deletions

View File

@ -165,6 +165,12 @@ func (a Assembler) Finalize() ([]byte, []byte) {
})
}
case NEGATE:
switch operands := x.Data.(type) {
case *Register:
code = x64.NegateRegister(code, operands.Register)
}
case OR:
switch operands := x.Data.(type) {
case *RegisterNumber: