83Plus:BCALLs:402D

From WikiTI
Jump to: navigation, search

Synopsis

Official Name: sysErrHandler

BCALL Address: 402D

An error handler which displays the standard "ERR:" screen.

Inputs

Outputs

  • None

Destroys

  • Everything (this routine does not return)

Comments

This routine is sometimes used by the OS as an error handler. It's very similar to monErrHand, and I'm not sure why this routine would ever be used instead.

Unlike monErrHand, this routine begins by resetting the hardware stack (but does not reset the FPS, OPS, or errSP.) It then loads the "cxError" context, and jumps to Mon.

Programs should never call or jump to this routine; I have no idea why it's a B_CALL at all. If you want to raise a system error, use JError, JErrorNo, or one of the specialized error routines.