comment the crt0

This commit is contained in:
Kevin Lange 2011-04-18 15:09:44 -05:00
parent c430668e8a
commit 9190f0c478

View File

@ -1,13 +1,19 @@
; ToAruOS User CRT0
BITS 32
global _start
_start:
pop eax
extern main
call main
_start: ; Global entry point
pop eax ; Our stack is slightly off
extern main ;
call main ; call C main function
mov ebx, eax ; return value from main
mov eax, 0x0
int 0x7F
_wait:
mov eax, 0x0 ; sys_exit
int 0x7F ; syscall
_wait: ; wait until we've been deschuled
hlt
jmp _wait
; vim:syntax=nasm
; vim:noexpandtab
; vim:tabstop=4
; vim:shiftwidth=4