Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
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)
                                    -♦-