AMX 68000 Target Guide
K
A
DAK
B-19
cjksitrap cjksitrap
Purpose Install a Task Trap Handler
Used by n Task o ISP o Timer Procedure o Restart Procedure n Exit Procedure
Setup Prototype is in file
CJZZZIF.H.
#include "CJZZZ.H"
CJ_ERRST CJ_CCPP cjksitrap(int trapid, CJ_TRAPPROC handler);
Description trapid is the processor vector number which identifies the particular error
trap.
CJ_PRVNZD Zero divide trap
CJ_PRVNCH CHK (bounds check) instruction trap
CJ_PRVNTV TRAPV (overflow test) instruction trap
handler is a pointer to the task's trap handler for the particular error trap.
Interrupts o Disabled o Enabled o Restored
Returns Error status is returned.
CJ_EROK Call successful.
Errors returned:
CJ_ERTKTRAP Trapid is not a vector number for which task traps
are allowed.