zombie-core-utils/arg.asm

21 lines
175 B
NASM
Raw Normal View History

2021-09-26 14:41:24 -04:00
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