Added CPU type
This commit is contained in:
@ -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.SyscallArgs[0], linux.Exit)
|
||||
entry.MoveRegisterNumber(x64.SyscallArgs[1], 0)
|
||||
entry.MoveRegisterNumber(x64.SyscallRegisters[0], linux.Exit)
|
||||
entry.MoveRegisterNumber(x64.SyscallRegisters[1], 0)
|
||||
entry.Syscall()
|
||||
return entry
|
||||
}
|
||||
|
Reference in New Issue
Block a user