;
;
; Online NASM Assembler.
; Code, Compile, Run and Debug NASM program online.
; Write your code in this editor and press "Run" button to execute it.
;
;
section .data
msg db "Hello, world!", 10
len equ $ - msg
section .text
global _start
_start:
; write(1, msg, len)
mov eax, 4 ; sys_write
mov ebx, 1 ; stdout
mov ecx, msg
mov edx, len
int 0x80
; exit(0)
mov eax, 1 ; sys_exit
xor ebx, ebx
int 0x80