Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>function 4ah (74) modify memory allocation (setblock)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 4Ah (74)        Modify Memory Allocation (SETBLOCK)

    Changes the size of a memory block that was allocated via Function
    48h.

       On entry:      AH         4Ah
                      BX         New block size, in paragraphs
                      ES         Segment address of the memory block to be
                                 modified

       Returns:       AX         Error code, if CF is set
                      BX         Maximum memory available, if CF is set and
                                 request was to expand memory block

       Error codes:   7          Memory control blocks destroyed
                      8          Insufficient memory
                      9          Invalid block address

                      Call Function 59h for extended error code information
                      (DOS 3.0 and above).

  --------------------------------------------------------------------------

    This function is used to increase or decrease the size of a memory
    block allocated by Function 48h. ES contains the segment address of
    the block whose size will be changed. BX contains the new size of the
    block, in paragraphs (16-bytes units).

See Also: 48h 49h 59h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson