AMX 86 Procedures
K
A
DAK
247
ajivtx ajivtx
Purpose Exchange an Interrupt Vector
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup int inttype;
void (*oldproc)();
void newproc();
int status;
.
.
status = ajivtx(inttype, newproc, &oldproc);
AX DX ES:BX DS:DI
Where inttype is the 8086 interrupt type (0-255).
newproc is a pointer to the new interrupt handler.
&oldproc is a pointer to storage for the pointer to the current interrupt
handler.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERIPR = Vector table is not accessible
AMX was launched with access to the Interrupt Vector
Table denied.
Note oldproc can be used as newproc in a subsequent call to ajivtx.
status = ajivtx(inttype, oldproc, &oldproc);
Restrictions You must NOT use this procedure to alter the vector entries for the divide
error, overflow trap or bounds error. Use ajitrp for that purpose.
See Also ajitrp, ajivtr, ajivtw