270
K
A
DAK
AMX 86 Procedures
ajmset ajmsetPurpose Set (Fill) Memory
Used by n Task o IS P o Timer Procedure n Restart Procedure n Exit Procedure
Setup char *mempntr;
long memsize;
unsigned short int pattern;
int status;
.
.
status = ajmset(mempntr, memsize, pattern);
AX ES:BX DX:CX SI
Where mempntr is a pointer to the memory area which is to be filled with the
pattern.
memsize is the size in bytes of the memory area at mempntr.
pattern is the 16-bit fill pattern.
Results Interrupts are untouched.
Status is returned.
AEROK = Call successful
AERMMV = Memory overflow
Memsize is too large. An attempt to fill the memory region
would exceed the 1 Mb addressing range.
This procedure is optimized for speed in filling large regions of memory.
The procedure will fill any even or odd sized region of byte or word
aligned memory. The least significant 8 bits of pattern are stored at
*mempntr. The most significant 8 bits of pattern are stored at
*(mempntr+1) provided memsize is greater than one. The pattern then
repeats up to the extent indicated by memsize.