Download PDF Version

Transcript
defineErrorHandler
void defineErrorHandler( void *errfcn )
DESCRIPTION
Sets the BIOS function pointer for runtime errors to the function pointed to by errfcn.
This user-defined function must be in root memory. Specify root at the start of the function definition to ensure this. When a runtime error occurs, the following information is
passed to the error handler on the stack:
Stack Position
Stack Contents
SP+0
Return address for exceptionRet
SP+2
Error code
SP+4
0x0000 (can be used for additional information)
SP+6
XPC when exception() was called (upper byte)
SP+8
Address where exception() was called
PARAMETERS
errfcn
Pointer to user-defined run-time error handler.
LIBRARY
SYS.LIB
44
Dynamic C Function Reference Manual