286
K
A
DAK
AMX 86 Procedures
ajrtl ajrtlPurpose Remove from Top of Circular List
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup char item; /* one byte item */
int status;
.
.
status = ajrtl(&list, &item);
AX BX CL=, CX= or DX:CX=
Where &list is a pointer to a circular list (see ajrstl).
&item is a pointer to storage for the 1, 2 or 4 byte item to be removed from
the list. If &item is NULL (0L), the item is deleted from the list but is
not returned to the caller.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
0= Removed OK; list not empty
1= Removed OK; list now empty
-1 = Cannot remove item; list is empty
See Also ajrstl, ajatl, ajabl, ajrbl