20 lines
175 B
NASM
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
|