Note: Unlike many library functions, the memory management macros do not require the data segment to equal the code segment.
Basic memory management:
| MemHeap | Create a managed memory HEAP in lower memory. |
| MemNew | Allocate memory in the HEAP. |
| MemFree | Release memory in the HEAP. |
| MemAvail | Get size of largest free block in the HEAP. |
| MemUsed | Get total size of used space in the HEAP. |
| MemUnused | Get total amount of free space in the HEAP. |
| MemSize | Get the amount of memory reserved for the HEAP. |
| MemError | Set a callback function for HEAP error handling. |
XMS memory management:
EMS memory management:
DOS memory functions:
| DOS_Alloc | Allocate a DOS memory block. |
| DOS_Release | Release a DOS memory block. |
| DOS_Resize | Resize a DOS memory block. |