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.
@GetBlock Macro
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Include:   DOS.INC
 
  Syntax:    @GetBlock paragraphs [, retry]
 
  Summary:   Allocates a block of memory
 
  Argument:  <paragraphs>     Paragraphs (16 bytes) of memory wanted
             <retry>          If nonzero, allocate largest block
                              available
 
  Returns:   AX     If carry: clear, the segment of the allocated
                    memory. If carry: set, an error code
             BX     Paragraphs actually allocated. If <retry> is not
                    zero, it may be less than requested.
 
  Modifies:  AX, BX
 
  See also:  Int 21h Function 48h, @FreeBlock, @ModBlock
                                    -♦-