www.main.lv
Don't think just code it

2009-03-28 FreeBSD assembler simple programm

Programm should start with _start point . This programm that only exit. That is minimal what we need start programm and terminate it.
format ELF 
section '.text' 
executable public _start 
_start: 
    xor eax,eax 
    push eax
    inc eax; 1 = sys_exit 
    int 0x80

Compiling this with fasm simple.asm -o simple.o
Then running ld to link our first programm
ld -o simple simple.o