Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 31 - dpmi 0.9 api - protected mode - get free memory information http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 31 - DPMI 0.9 API - protected mode - GET FREE MEMORY INFORMATION
        AX = 0500h
        ES:DI / ES:EDI -> buffer for memory information (see below)
Return: CF clear
Notes:  16-bit programs use ES:DI, 32-bit programs use ES:EDI
        this function must be considered advisory because other applications
          may affect the results at any time after the call
        fields not supported by the DPMI implementation are filled with
          FFFFFFFFh
SeeAlso: AX=0501h, AX=0604h

Format of memory information:
Offset  Size    Description
 00h    DWORD   largest available block in bytes
 04h    DWORD   maximum unlocked page allocation
 08h    DWORD   maximum locked page allocation
 0Ch    DWORD   linear address space in pages
 10h    DWORD   total unlocked pages
 14h    DWORD   free pages
 18h    DWORD   total physical pages
 1Ch    DWORD   free linear address space in pages
 20h    DWORD   size of paging file/partition in pages
 24h 12 BYTEs   reserved

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