Files included: MEM ASM Assembly code for GETMEM routine MEM OBJ Object module to link with for GETMEM routine MAKEFILE TEST FOR Test program code README TXT This file MEM ZIP file containing all the other files Test program for the GETMEM function. This function ONLY works under DOS and not under Windows. Windows is a DPMI server and it provides different services then the Phar Lap VMM and DPMI interrupts must be used to get this information. The file MEM.FI contains the interface statement to the function GETMEM. This interface statement must be the first line in any source file that attempts to access the function. The function takes an argument of type MEMINFO and of type BYTE (by value). The MEMINFO structure returns with detailed information about the memory configuration of the application. The function itself returns just the maxmem element of the structure which is the largest block of available memory. The second argument takes a 1 to reset the memory statistics or 0 to not reset them. Most of the data is in the form of pages. To get actual number of bytes, multipy by 4096. The getmem function return does this already in the assembly code.