Hello world:
section .text
global _start
_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov eax,1
int 0x80
section .data
msg db 'Hello world',0xa
len equ $ - msg
filename >
hello.asm
Compile:
nasm -f elf64 hello.asm
Link:
ld -s -o hello hello.o