AMX 86 Procedures
K
A
DAK
263
ajmau ajmau
Purpose Add to Memory Block Use Count
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup char *blockp;
int increment;
int status;
.
.
status = ajmau(blockp, increment);
AX ES:BX DX
Where blockp is a pointer to a memory block allocated by ajmget or ajmgeh.
increment is the signed value to be added to the memory block's use
count.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
use count = use count + increment
AERMIB = Invalid memory block pointer
AERMNU = Memory block not in use
AERMOV = Memory block use count overflow
If the call is not successful, the memory block use count is unaltered.
Once a memory block's use count is increased to n, the memory will not
be freed until n calls to ajmfre are made to release the memory block.
See Also ajmget, ajmgeh, ajmfre