Z88 Developers' Notes
Contents   Contents of System Calls

OS_Exit, quit process (application)

RST 20H, DEFW $F606

IN:

     IX = application handle returned from a previous OS_Poll
     BHL = pointer to stacked process information:
          B = 0, exit current process
          B <> 0, start instantiation and force OS_Bye via RC_QUIT
OUT, if call failed:
     Fc = 1
          A = RC_???
Registers changed after return:
     ..BCDEHL/IXIY same
     AF....../.... different
Notes:
Internal operating system usage.
Bugs:
     -
Related system calls:
OS_Ent, enter an application
DC_Ent, enter new application
DC_Nam, name current application
OS_Poll, poll for an application
DC_Pol, poll for card usage
OS_Stk, stack the current process (application)
OS_Use, process card usage
OS_Bye, exit application
DC_Bye, exiting current application