Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Register parameters

Code Block
languagenone
titleRST 20H, DEFW DEFB $75
IN:
     A = 0, always (call level, other values reserved for system use
  )
  B = 0      HL = address of new error handler
     HL = 0, use default system error handler (in lower 8K of segment 0)

OUT:
     Fc = 0, always
     A  = old call level
     HL = address of old error handler

Registers changed after return:
     ..BCDE.CDE../IXIY same
     AFBAF....HL/.... different

Notes

Make sure that the error handler is not paged out of the corresponding segment, when calling OZ. If an error occurs random information will be executed, since the original code of the particular bank has been paged out.

Related system calls

GN_Err, display an interactive error box
GN_Esp, return an extended pointer to a system error message
OS_Erc, get error context
OS_Esc, examine special condition