Lots of work on the AcessNative kernel
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / crt0.asm
index 07db9de..b923d18 100644 (file)
 [global _start]
 [global start]
 [extern main]
+[extern _exit]
 _start:
 start:
        call main
-       mov eax, ebx    ; Set Argument 1 to Return Value
-       xor eax, eax    ; Set EAX to SYS_EXIT (0)
-       int     0xAC
+       push eax
+       call _exit      
        jmp $   ; This should never be reached

UCC git Repository :: git.ucc.asn.au