INT 21h - [DOS 2.0+]

Function 4Ah

Modify Allocated Memory Block


Changes the size of a memory block previously allocated by Function 48h.

Input:
AH = 4Ah
BX = new memory size in paragraphs
ES = segment of block address
Output:
CF = 0 function is successful
CF = 1 function is unsuccessful
AX = error code
07h = memory control block destroyed
08h = insufficient memory
09h = incorrect memory block address
BX = Max number of Paragraphs Available
Comments: