244
K
A
DAK
AMX 86 Procedures
ajitrp ajitrp
Purpose Install a Task Trap Handler
Install a task trap handler to service divide error, overflow or bound check
error traps.
Used by n Task o IS P o Timer Procedure o Restart Procedure o Exit Procedure
Setup int inttype;
void handler();
int status;
.
.
status = ajitrp(inttype, handler);
AX DX ES:BX
Where inttype is the 8086 interrupt type
0 = Divide by 0 trap
4= INTO overflow trap
5= BOUND bounds trap
handler is a pointer to the task's trap handler for the particular error trap.
Results Interrupts are untouched.
Status is returned.
AEROK = Call successful
AERITT = Interrupt type is not one for which task traps are allowed.