AMX 86 Procedures
K
A
DAK
233
ajexit ajexit
Purpose Leave (Exit) the AMX Multitasking System
Used by n Task o IS P o Timer Procedure o Restart Procedure o Exit Procedure
Setup char *exitinfo;
int errcode;
.
.
ajexit(errcode, exitinfo);
CX DX:BX
Where errcode is the error code to be returned to the ajentr caller as status.
exitinfo is any 4-byte parameter to be copied to the ajentr caller's
result variable. In this example, the pointer value exitinfo will be
returned to the ajentr caller.
Results There is no return from ajexit.
Execution resumes in procedure ajentr.
errcode is returned to the ajentr caller as status.
exitinfo is copied to the ajentr caller's result variable.
Restrictions Your AMX system must be shut down. All task operation and device I/O
must be terminated before ajexit is called.
If AMX was started for permanent execution (launchparm[0] = 0 on
entry to ajentr), AMX will take its fatal exit via ajfatl with error code
AERFX4 if you try to stop AMX.
See Also ajentr, ajfatl
Note
If any Exit Procedure is coded using the Medium model,
any task which calls ajexit MUST also use the Medium
model.