Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Function 4Ah
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     This function modifies the size of a memory block that was
     previously allocated with a call to Int 21h Function 48h.
 
     If the program is requesting an increase in the size of an
     allocated block and this function fails, the maximum possible
     size for the specified block is returned in register BX. The
     program can use this value to determine whether it should
     terminate, or continue in a degraded fashion with less memory.
 
     A program that uses EXEC (Int 21h Function 4Bh) to load and
     execute a child program must call this function first, passing the
     address of its own PSP in register ES and the amount of memory
     needed for its own code, data, and stacks in register BX.
                                    -♦-