27 lines
222 B
NASM
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
|