2020-08-27 00:39:56 +00:00
|
|
|
.section .text
|
|
|
|
.global _start
|
|
|
|
.global _init
|
2020-11-09 18:44:42 +00:00
|
|
|
.global Main
|
|
|
|
.global Exit
|
2020-08-27 00:39:56 +00:00
|
|
|
.type _start, @function
|
|
|
|
_start:
|
2020-11-09 18:44:42 +00:00
|
|
|
push %rbp
|
|
|
|
movq %rsp, %rbp
|
|
|
|
sub $0x10, %rsp
|
|
|
|
|
|
|
|
xor %rax, %rax
|
2020-08-27 00:39:56 +00:00
|
|
|
call _init
|
2020-11-09 18:44:42 +00:00
|
|
|
|
|
|
|
xor %rbp, %rbp
|
|
|
|
|
|
|
|
xor %rax, %rax
|
|
|
|
call Main
|
|
|
|
|
|
|
|
movq %rax, %rdi
|
|
|
|
call Exit
|
|
|
|
|