Advanced Topics
K
A
DAK
151
Your User Error Procedure can be coded in assembly language as a FAR procedure. Upon
entry to your User Error Procedure, the following conditions exist:
Interrupts are disabled.
All registers are free for use.
AX AMX error code (see AERxxx definitions)
DX Task id of current task (0 if error detected in ISP)
DS,ES GROUP segment
SS:SP Stack in effect at the time of the error
The direction flag is set to forward.
USER_CODE SEGMENT BYTE 'CODE'
;ASSUME CS:USER_CODE
;PUBLIC USERROR
;
USERROR PROC FAR
:
Interpret error code in AX
Interpret task id in DX
:
RET ;Resume
;
USERROR ENDP
;
USER_CODE ENDS
Note
Warnings and timeouts are NOT trapped to your User Error
Procedure. Appendix B identifies all AERxxxx codes which
are not trapped.