Previous: Function 0500 - Get Free Memory Information To the Table of Content Next: Function 0502 - Free Memory Block

- 7.2.30 -
PMODE/W MSDOS Extender
PMODE/W Supported DPMI INT 31h functions

Function 0501 - Allocate Memory Block

PMODE/W API

This function Allocates a block of extended memory.
In:
   AX     = 0501h
   BX:CX  = size of block in bytes (must be non-zero)
Out:
   if successful:
     carry flag clear
     BX:CX  = linear address of allocated memory block
     SI:DI  = memory block handle (used to resize and
              free block)
   if failed:
     carry flag set
Notes:
The allocated block is guaranteed to have at least DWORD alignment.

This function does not allocate any descriptors for the memory block. It is the responsibility of the client to allocate and initialize any descriptors needed to access the memory with additional function calls.


Previous: Function 0500 - Get Free Memory Information To the Table of Content Next: Function 0502 - Free Memory Block
Function 0500 - Get Free Memory Information Table of Content Function 0502 - Free Memory Block

- 7.2.30 -