zombie-core-utils/monkie/arg.asm
2021-10-02 08:52:04 -04:00

27 lines
222 B
NASM

extern puts
section .data
text db "0",0
frick dq 0
section .text
global main
main:
sub rsp, 8 ;enter
add rsi, 8
mov r8, [rsi]
mov [frick], r8
mov rdi, [frick]
cld
call puts
_end:
add rsp, 8 ;exit
ret