;; Assemble with;; nasm -felf64 hello.asm;; Link with;; ld -o hello hello.osection .data message db "Hello World!",10 MSGLEN equ $-messagesection .text global _start _start: ; print the string using write() system call mov rdx, MSGLEN mov rsi, dword message mov rdi, 1 mov rax, 4 syscall ; exit from the application here mov rax, 1 xor edi, edi syscall