Added CPU type

This commit is contained in:
2024-06-21 22:16:42 +02:00
parent 1058970be3
commit 4faa1641c6
10 changed files with 92 additions and 28 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.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
}