The LazyBoy Library Manual - MemSize

Part of the Memory Management group.

%imacro MemSize 1
Prefers: DX:AX
Prefers: AX

Get the amount of memory reserved for the HEAP.

The return value will be 32-bit register pair value. However, if only a word is provided as a parameter and the heap is larger than 65535 bytes, the value returned will be 65535.

Example:

    MemSize dx:ax       ; get largest free block size
    MemSize cx          ; get largest free block size

See also: MemHeap, MemAvail and MemNew.