| HeapMax | Function (ROM Call 0x9C)

alloc.h

unsigned long HeapMax (void);

Determines the size of the largest allocatable block.

HeapMax returns the size of the largest block allocatable on the heap (it will be in the range of 0 through 65520). Note that this may not be equal to HeapAvail due to locked blocks, overhead, and maximum block size. This routine will (always) cause heap compression (garbage collection).

Uses: HeapCompress
Used by: scanf, vscanf