Implemented number output

This commit is contained in:
2024-07-26 12:50:47 +02:00
parent f4dd9004be
commit 123738f88c
12 changed files with 185 additions and 46 deletions

View File

@ -200,6 +200,8 @@ func (a Assembler) Finalize() ([]byte, []byte) {
switch operands := x.Data.(type) {
case *MemoryNumber:
code = x64.StoreNumber(code, operands.Address.Base, operands.Address.Offset, operands.Address.Length, operands.Number)
case *MemoryRegister:
code = x64.StoreRegister(code, operands.Address.Base, operands.Address.Offset, operands.Address.Length, operands.Register)
}
case SYSCALL: