global main extern printf section .data msg db "Hello, x86_64 Assembly!", 10, 0 section .text main: sub rsp, 8 lea rdi, [rel msg] call printf wrt ..plt mov eax, 0 add rsp, 8 ret