unistd.h: declare lseek()
[neatlibc.git] / start.s
blob1f1e854c209ee6a4bf7cdd7362c5f8b5c8358c32
1 format ELF
3 extrn environ
5 extrn main
6 public _start
7 _start:
8 xor ebp, ebp
9 pop ecx
10 mov edx, esp
11 push ecx
13 lea eax, [edx + ecx * 4 + 4]
14 mov [environ], eax
16 push eax
17 push edx
18 push ecx
19 call main
20 mov ebx, eax
21 mov eax, 0x1
22 int 0x80