git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
531a3783ef31fe5404eaadb5452ba8c70cff2573
[tpg/acess2.git]
/
Usermode
/
Libraries
/
crt0.o_src
/
crt0.asm
1
;
2
; Acess2
3
; C Runtime 0
4
; - crt0.asm
5
6
[BITS 32]
7
[section .text]
8
9
10
[global _start]
11
[global start]
12
[extern main]
13
[extern _exit]
14
_start:
15
start:
16
call main
17
push eax
18
19
mov eax, [_crt0_exit_handler]
20
test eax, eax
21
jz .exit
22
call eax
23
24
.exit:
25
call _exit
26
jmp $ ; This should never be reached
27
[section .bss]
28
[global _crt0_exit_handler]
29
_crt0_exit_handler:
30
resd 1
UCC
git Repository :: git.ucc.asn.au