zombie-core-utils/arg.asm
2021-09-26 14:41:24 -04:00

20 lines
175 B
NASM

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