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 58h
 ◄Summary►                                   ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
     The memory allocation strategies are:
 
     First Fit: MS-DOS searches the available memory blocks from low
     addresses to high addresses, assigning the first one large enough
     to satisfy the block allocation request.
 
     Best Fit: MS-DOS searches all available memory blocks and assigns
     the smallest available block that will satisfy the request,
     regardless of its position.
 
     Last Fit: MS-DOS searches the available memory blocks from high
     addresses to low addresses, assigning the highest one large enough
     to satisfy the block allocation request.
 
     The default MS-DOS memory allocation strategy is First Fit
     (code 0).
                                    -♦-