union REGS CPURegs;
unsigned int EMSVer = 0;
- byte EMS_status;
+ //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
+ //mov [EMS_status],ah
jnz error
mov ah,EMS_VERSION
if(!scan)
{
- printf("MM_FreePtr: Block not found!");
+ printf("MM_FreePtr: Block not found!\n");
return;
}
free (mm->nearheap);
dumpfile = fopen ("mmdump.txt","w");
if (!dumpfile){
- printf("MM_DumpData: Couldn't open MMDUMP.TXT!");
+ printf("MM_DumpData: Couldn't open MMDUMP.TXT!\n");
return;
}
} while (lowest != 0xffff);
fclose (dumpfile);
- printf("MMDUMP.TXT created.");
+ printf("MMDUMP.TXT created.\n");
}
//==========================================================================
#define MAXBLOCKS 600
+
//--------
#define EMS_INT 0x67
boolean mmstarted, bombonerror, mmerror;
void huge *farheap;
void *nearheap;
- byte EMS_status;
+ //byte EMS_status;
unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
unsigned int EMSVer;
word numUMBs,UMBbase[MAXUMBS];