modified: exmmtest.exe
modified: src/lib/16_mm.c
modified: src/lib/16_mm.h
union REGS CPURegs;
unsigned int EMSVer = 0;
+ byte EMS_status;
unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
totalEMSpages = freeEMSpages = EMSpageframe = EMSpagesmapped = 0;
mov ah,EMS_STATUS
int EMS_INT // make sure EMS hardware is present
or ah,ah
+ mov [EMS_status],ah
jnz error
mov ah,EMS_VERSION
boolean mmstarted, bombonerror, mmerror;
void huge *farheap;
void *nearheap;
+ byte EMS_status;
unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
unsigned int EMSVer;
word numUMBs,UMBbase[MAXUMBS];