64338004d45e8c0ef78439a525c1690230698e04
[mes.git] / mlibc / crt1.M1
1
2
3 :_start
4         push___%ebp
5         mov____%esp,%ebp
6         sub____%esp,$i32 %0x1054
7         mov____%ebp,%eax
8         add____$i8,%eax !4
9         movzbl_(%eax),%eax
10         add____$i8,%eax !3
11         shl____$i8,%eax !0x02
12         add____%ebp,%eax
13         mov____%eax,0x32 &g_environment
14         mov____%ebp,%eax
15         add____$i8,%eax !8
16         push___%eax
17         mov____%ebp,%eax
18         add____$i8,%eax !4
19         movzbl_(%eax),%eax
20         push___%eax
21                                         # main(); 
22         call32 %main
23         add____$i8,%esp !0x0
24         test___%eax,%eax
25         mov____%eax,%ebx
26         mov____$i32,%eax %1
27         int____$0x80
28         hlt
29         leave
30         ret
31
32 :g_environment
33 !0x00 !0x00 !0x00 !0x00