Implemented multiplication
This commit is contained in:
parent
81fcb50e77
commit
432397043d
11 changed files with 107 additions and 47 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue