zombie-core-utils/monkie/arg.asm

28 lines
222 B
NASM
Raw Normal View History

2021-09-26 14:41:24 -04:00
extern puts
2021-09-26 14:41:24 -04:00
section .data
text db "0",0
frick dq 0
2021-09-26 14:41:24 -04:00
section .text
global main
main:
sub rsp, 8 ;enter
add rsi, 8
mov r8, [rsi]
mov [frick], r8
2021-09-26 14:41:24 -04:00
mov rdi, [frick]
2021-09-26 14:41:24 -04:00
cld
call puts
2021-09-26 14:41:24 -04:00
_end:
add rsp, 8 ;exit
ret