add LCC - a better C-Compiler for WEGA

This commit is contained in:
Oliver Lehmann 1990-03-15 21:41:57 +00:00
parent 5db4caa3bc
commit d1573ba93c
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// C library -- exit
// exit(code)
// code is return in r0 to system
.seg
sp := r15
SP := rr14
.psec
.code
_exit::
{
call __cleanup
ld r0,SP(#4)
sc #1 // exit
}