.code public _start,main _start: ; Entry point main: ; gdb breakpoint MOV RAX,4 ; SYS_write (see /usr/include/sys/syscall.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,1 ; SYS_exit (process termination) SYSCALL .data MSG db 'Hello, world!',10,10 LEN equ $ - MSG end