AMX 86 Procedures
K
A
DAK
223
ajentr ajentrPurpose Launch (Enter) the AMX Multitasking System
Used by o Task o ISP o Timer Procedure o Restart Procedure o Exit Procedure
Setup #include "amx831sd.h"
.
.
struct amxupts FAR *uptp;
int launchparm;
char *result;
int status;
.
.
ajupt(&uptp);
status = ajentr(launchparm, uptp, &result);
AX BX ES:SI DX:BX=
Where launchparm is a launch parameter bit mask.
bit 0Exit control
=0 permanent launch
= AMLPTMP temporary launch
bit 1Interrupt Vector Table access
=0 IVT cannot be accessed
= AMLPVA entries in IVT can be altered
bit 2Interrupt state during launch
= 0interrupts disabled
= AMLPIE interrupts enabled
uptp is a FAR pointer to your User Parameter Table.
The structure amxupts and mnemonics AMLPxxx are defined in header
file AMX831SD.H (see Appendix D).
&result is a pointer to 4 bytes of storage for the exit information returned
by your ajexit call. If &result is NULL (0L), the parameter given to
ajexit is not returned to the ajentr caller. In this example, result
will receive a pointer to a character.