stddef.h: add size_t definition
[neatlibc.git] / start.s
blobfef18621174fc63a918f37e3d840fc22b049af39
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 * 8]
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