Table des matières

INT 0x21 - 0x48 - Allocate Memory

Request/Call:

reg value descr
AH 0x48
BX number of memory paragraph requested

Return:

reg descr
AX Segment address of allocated memory block (MCB + 1para)
error code if CF is set (see DOS Error Code)
BX size in paras of the largest block of memory available if CF set, and AX = 08 (Not Enough Mem)

Notes & Comments

  • returns segment address of allocated memory block AX:0000
  • each allocation requires a 16 byte overhead for the MCB
  • returns maximum block size available if error

Back