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
 Detail Example                          Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   4Ah
 
  Title:       Resize Memory Block
 
  See also:    Allocate Memory Block, @ModBlock
 
  Description:
 
     Dynamically shrinks or extends a memory block according to the
     needs of an application program.
 
     Input                              Output
 
     AH = 4Ah                           If function successful
     BX = Desired new block size in       Carry flag: clear
          paragraphs
     ES = Segment of block to be        If function unsuccessful
          modified                        Carry flag: set
                                          AX = Error code (07, 08h, or
                                               09h)
                                          See: Error codes
                                          BX = Maximum block size
                                               available (paragraphs)
                                    -♦-