.code public _start,main _start: ; Entry point main: ; gdb breakpoint MOV RAX,1 ; SYS_write (see /usr/include/{arch.}/asm/unistd.h) MOV RDI,1 ; File descriptor 1: stdout (standard output) MOV RSI,OFFSET MSG; String address MOV RDX,LEN ; String length SYSCALL ; Call the corresponding OS kernel function MOV RAX,60 ; SYS_exit (process termination) SYSCALL .data MSG db 'Hello, world!',10,10 LEN equ $ - MSG end