www.delorie.com/djgpp/doc/dpmi/api/310501.html   search  
Int 31H Function 0501H

Allocate Memory Block [0.9]

Allocates and commits a block of linear memory.

Call With

AX = 0501H
BX:CX = size of block (bytes, must be nonzero)

Returns

if function successful
Carry flag = clear
BX:CX = linear address of allocated memory block
SI:DI = memory block handle (used to resize and free block)

if function unsuccessful
Carry flag = set
AX = error code
8012Hlinear memory unavailable
8013Hphysical memory unavailable
8014Hbacking store unavailable
8016Hhandle unavailable
8021Hinvalid value (BX:CX = 0)

Notes


  prev next   webmaster     delorie software   privacy  
  Copyright © 1996     Updated Apr 1996