Implemented multiplication

This commit is contained in:
Eduard Urbach 2024-06-24 22:43:01 +02:00
parent 81fcb50e77
commit 432397043d
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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
}