Implemented multiplication
This commit is contained in:
@ -39,6 +39,12 @@ func (a *Assembler) Finalize() ([]byte, []byte) {
|
||||
code = x64.SubRegNum(code, operands.Register, operands.Number)
|
||||
}
|
||||
|
||||
case MUL:
|
||||
switch operands := x.Data.(type) {
|
||||
case *RegisterNumber:
|
||||
code = x64.MulRegNum(code, operands.Register, operands.Number)
|
||||
}
|
||||
|
||||
case CALL:
|
||||
code = x64.Call(code, 0x00_00_00_00)
|
||||
size := 4
|
||||
|
Reference in New Issue
Block a user