qa.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
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Allocate Memory Block
 
  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
                                     BX=size of largest available block
                                      (paragraphs)
                                    -♦-