GetMCBSize Get current memory control block (MCB) memory allocation block size.

Inputs: AX = 0ff27h

Outputs: ECX = Current threshold

Errors: None

Notes: See SetMCBMax

GetMem Allocate a block of memory.

Inputs: AX = 0ff0bh

CX:DX = Size of block required in bytes. (use -1:-1 to get maximum memory size)

Outputs: Carry set on error else,

BX = Selector to access the block with or if CX:DX was –1, CX:DX = size of largest block available.

Errors: The amount of memory available is limited by physical memory present and free disk space of the drive being used by the VMM. If CauseWay is unable to find a large enough block this function returns carry set.

Notes: This function allocates a block of extended (application) memory and allocates a selector with a suitable base and limit.

Next Page

Previous Page

Go to Table of Contents