Implemented multiplication

This commit is contained in:
2024-06-24 22:43:01 +02:00
parent 625e8d5e2e
commit 34af20d7a0
11 changed files with 107 additions and 47 deletions

View File

@ -29,8 +29,8 @@ func Finalize(functions map[string]*Function) ([]byte, []byte) {
func entry() *asm.Assembler {
entry := asm.New()
entry.Call("main")
entry.MoveRegisterNumber(x64.SyscallRegisters[0], linux.Exit)
entry.MoveRegisterNumber(x64.SyscallRegisters[1], 0)
entry.RegisterNumber(asm.MOVE, x64.SyscallRegisters[0], linux.Exit)
entry.RegisterNumber(asm.MOVE, x64.SyscallRegisters[1], 0)
entry.Syscall()
return entry
}