AMX 86 Assembler Interface
K
A
DAK
381
E. AMX 86 Assembler InterfaceThis appendix summarizes the assembly language calling sequences for all AMX
procedures. The procedures are organized in functional groups. Within each group the
procedures are listed alphabetically.
All procedures are called as follows:
EXTRN AAxxxx:FAR ;external FAR procedure
.
.
Parameters in registers specified by column IN
CALL AAxxxx
Results in registers specified by column OUT
AX = AEROK flags = Z no error
AX = AERxx flags = NZ, S error
AX = AERWxx flags = NZ, NS warning
For some functions, AX returns a parameter and no error status is provided.
In such cases, the zero and sign flags are unknown. AX is always altered
unless otherwise specified.
All registers except AX and those used to return results are preserved.
Exceptions are noted.
The direction flag is always preserved. Other flags which are altered by
arithmetic and logical operations are unknown upon return.
Interrupts are affected as follows:
EDR
ooo Untouched
ono Disabled upon return
noo Enabled upon return
nno Disabled and then enabled upon return
onn Disabled and then restored to the state at the time of the call
nnn Disabled and enabled and then restored to the state at the time of the call