Function 58h Get or Set Alloction Strategy (Dos 3.x)entry AH 58h
AL 00h Get Strategy Code
return AX current strategy code
01h Set Strategy Code
BX 00h first fit stratigy
01h best fit
02h last fit
return CF set if error
AX error code
note 1) 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: Searches all available memory blocks and assigns the
smallest available block that will satisfy the request,
regardless of its position.
Last Fit: Searches the available memory blocks from high addresses to
low adresses, assigning the highest one large enough to
satisfy the block allocation request.
2) The default MS-DOS memory allocation strategy is First Fit (code 0)