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 48h
 Detail Example                          Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   48h
 
  Title:       Allocate Memory Block
 
  See also:    Release Memory Block, Resize Memory Block,
               Get or Set Allocation Strategy, @GetBlock
 
  Description:
 
     Allocates a block of memory and returns a pointer to the beginning
     of the allocated area.
 
     Input                         Output
 
     AH = 48h                      If function successful
     BX = Number of paragraphs       Carry flag: clear
          of memory needed           AX = Initial segment of allocated
                                          block
 
                                   If function unsuccessful
                                     Carry flag: set
                                     AX = Error code (07h or 08h)
                                     See: Error codes
                                     BX = Size of largest available
                                          block (paragraphs)
                                    -♦-