268
K
A
DAK
AMX 86 Procedures
ajmhan ajmhan
Purpose Create Memory Handle for Private Alloca tion
Used by n Task o IS P o Timer Procedure n Restart Procedure n Exit Procedure
Setup char *blockp;
long memsize;
char *handle;
int status;
.
.
status = ajmhan(blockp, memsize, &handle);
AX ES:BX DX:CX ES:BX=
Where blockp is a pointer to an area of memory whose access is to be controlled
by the Memory Manager. Blocks allocated by ajmget or ajmgeh are
suitable.
memsize is the size of the memory block at blockp.
&handle is a pointer to storage for a memory handle which must be used
for subsequent access to smaller blocks within the larger block. Note
that the handle which is returned is a pointer.
Results Interrupts are untouched.
Status is returned.
AEROK = Call successful
handle can be used for access to the block of memory
using ajmgeh.
AERMNA = Memory size is too small
If the handle cannot be created, the value of handle is undefined.
See Also ajmgeh, ajmfre, ajmau