Z88 Developers' Notes
Contents   Contents of System Calls

OS_Bye, exit application

RST 20H, DEFB $21

IN:

     A = system error code to display standard error box message
     A = 0, no error message after exit
OUT:
     -
Notes:
This is the call which the application must make to terminate itself; in particular in the error handler when responding to a <>KILL request. Note that this call does NOT automatically close files and deallocate memory - the application must do this before making the call. Register changes are not fixed, as the code previously executing is not re-entered.
Bugs:

Related system calls:

OS_Poll, poll for an application
DC_Pol, poll for card usage
OS_Ent, enter an application
DC_Ent, enter new application
DC_Nam, name current application
OS_Exit, exit an application
DC_Bye, exiting current application
OS_Stk, stack current process (application)
OS_Use, process card usage