SECTION .data msg db "Hello World!", 0Ah ; SECTION .text global _start _start: mov edx, 13 ; number of bytes to write mov ecx, msg ; move memory address of 'msg' to ecx mov ebx, 1 ; write to the file STDOUT mov eax, 4 ; invoke SYS_WRITE (kernel opcode 4) int 80h mov ebx, 0 ; mov eax, 1 ; int 80h