Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- XMS Specification (version 3.0) - <b>query any free extended memory (function 88h)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Query Any Free Extended Memory (Function 88h)

        ARGS:   AH = 88h

        RETS:   EAX = Size of largest free extended memory block in Kb.
                BL = 0 if no error occurs, otherwise it takes an error code.
                ECX = Highest ending address of any memory block.
                EDX = Total amount of free memory in Kb.

        ERRS:   BL = 80h if the function is not implemented.
                BL = 81h if a VDISK device is detected.
                BL = A0h if all extended memory is allocated.

This function uses 32-bit values to return the size of available memory,
thus allowing returns up to 4GByte. Additionally, it returns the highest
known physical memory address, that is, the physical address of the last
byte of memory.  There may be discontinuities in the memory map below
this address.

The memory pool reported on is the same as that reported on by the
existing Query Free Extended Memory function.  If the highest memory
address is not more than 64 Mb, then these two functions will return the
same results.

Because of its reliance on 32-bit registers, this function is only
available on 80386 and higher processors.  XMS drivers on 80286 machines
should return error code 80h if this function is called.

If error code 81h is returned, the value in ECX will still be valid.  If
error code A0h is returned, EAX and EDX will be 0, and ECX will still be
valid.

Note: This function is new to version 3.0

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