252
K
A
DAK
AMX 86 Procedures
ajlinsk ajlinsk
Purpose Insert Object into Keyed List
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup #include "amx831sd.h"
.
.
struct amxlhs list;
struct appobj *object;
unsigned int key;
.
.
ajlinsk(&list, object, key);
DS:SI ES:BX CX
Where &list is a pointer to the list header.
object is a pointer to the object to be inserted into the list.
key is the insertion key. Objects are inserted in order of ascending key
values. The object with the smallest key will be at the head of the list.
If other objects with the same key value already reside on the list, the
new object will be inserted after all other objects with that key.
Results Interrupts are disabled and then restored to their state at the time of the
list.
Restrictions The caller must own the list. The list must not be manipulated by other
tasks, ISPs or Timer Procedures while this call is in progress. You can use
the Semaphore Manager to control ownership of the list if necessary.
ISPs should avoid the use of this procedure unless dealing with very short
lists. Use of this procedure with long lists may cause unacceptable timing
effects in ISPs.