AMX 86 Procedures
K
A
DAK
299
ajsint ajsintajsintq ajsintq
Purpose Generate Software Interrupt
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup #include "amx831sd.h"
.
.
struct amxregs regarray;
int inttype;
unsigned int regeax:
.
.
regeax = ajsint(inttype, &regarray);
or
regeax = ajsintq(inttype, &regarray);
Where inttype is the interrupt type (number 0 to 255).
regarray is a structure containing the processor register values which are
required for the particular software interrupt being generated. Ajsint
requires that all of the segment registers in regarray be initialized
with valid selectors. Ajsintq unconditionally copies the contents of
the current hardware segment registers into the segment registers in
regarray. General register values which are not required by the
interrupt procedure do not have to be provided.
If registers DS and/or ES are not required by the interrupt procedure, set
their values to 0 in regarray.
The structure amxregs is defined in header file AMX831SD.H (see
Appendix D).
regeax is the value which was in register AX when the interrupt procedure
ended.