The LazyBoy Library Manual - MemUsed

Part of the Memory Management group.

%imacro MemUsed 1
Prefers: DX:AX
Prefers: AX

Get total size of used space in the HEAP.

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

Example:

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

See also: MemSize, MemUnused and MemNew.