AMX 86 Procedures
K
A
DAK
285
ajrstl ajrstlPurpose Initialize (Reset) a Circular List
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup /* define type of slots */
typedef char SLOT1; /* byte slot */
typedef short int SLOT2; /* word slot */
typedef long SLOT4; /* double word slot */
/* define number of slots in list */
#define NSLOT 64
struct { int header[4];
SLOT4 slots[NSLOT];
} list;
.
.
ajrstl(&list, sizeof(SLOT4), NSLOT);
ES:BX DX CX
Where &list is a pointer to storage for use as a circular list.
sizeof(SLOT4) is the slot size of the circular list (1, 2, or 4 bytes
corresponding to byte, word or double word slots).
NSLOT is the number of slots in the list. (0 < NSLOT < 16380)
Results Interrupts are disabled and then restored to their state at the time of the
call.
See Also ajatl, ajabl, ajrtl, ajrbl