art_of_x64_assembly/listing1-5.asm
2024-07-12 23:32:09 -04:00

23 lines
224 B
NASM

option casemap:none
.data
fmtStr byte "Hello, world!", 10, 0
.code
externdef printf:proc
public asmFunc
asmFunc proc
sub rsp, 56
lea rcx, fmtStr
call printf
add rsp, 56
ret
asmFunc endp
end