AMX 86 Procedures
K
A
DAK
325
ajtksts ajtksts
Purpose Get Status of a Task
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup #include "amx831sd.h"
.
.
struct amxsbs tasksts;
AMXID taskid;
int status;
.
.
status = ajtksts(taskid, &tasksts);
AX DX ES:BX
Where taskid is the task id of the task for which status is required.
&tasksts is a pointer to storage for the task status.
The structure amxsbs is defined in header file AMX831SD.H (see
Appendix D).
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERNST = Invalid task id
If the call is unsuccessful, the task status in tasksts is undefined.