11 lines
242 B
ArmAsm
11 lines
242 B
ArmAsm
.ifndef _main_exit_s_file
|
|
_main_exit_s_file:
|
|
|
|
# exitcode -> | cont (unused, should be 0) |
|
|
.thunkcode main_exit
|
|
mov 0x8(%rsi), %rdi # result to syscall exitcode
|
|
mov $0x3c, %rax # syscall 60
|
|
syscall # exit %rdi
|
|
|
|
.endif # _main_exit_s_file
|