Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_48

Table des matières

INT 0x21 - 0x48 - Allocate Memory

Request/Call:

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

Return:

  • CF set if error
  • CF cleared if successful
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

back2root/ibm-pc-ms-dos/interrupts/int_21/int_21_48.txt · Dernière modification : 2023/01/16 17:54 de 127.0.0.1