* restored correct exit code

This commit is contained in:
carl 1998-05-25 12:15:04 +00:00
parent e88d6f01cd
commit fd85bca7b3

View File

@ -13,7 +13,6 @@
.globl _edata | end of data segment
.globl _end | end of BSS segment (end of program)
.globl __BREAK | location of stack/heap break
.globl __exit | terminate immediately with exit code
.globl __ARGC | number of arguments
.globl __ARGS | argument list pointer
.globl __envp | environment string pointer
@ -141,7 +140,11 @@ shrink:
| call C entry point function _main()
|
jsr PASCALMAIN | if _main returns
movew d0,sp@(4) | insert return value and fall thru
movew #0,sp@- | Terminate program normally
trap #1
| movew d0,sp@(4) | insert return value and fall thru