-Seg:0 Size:176016 Owner:0xfe\r
-Seg:2af9 Size:4096 Owner:0xfb20\r
-Seg:2bf9 Size:31344 Owner:0x1c58\r
-Seg:3928 Size:990512 Owner:0xeb00\r
-Seg:390a Size:683872 Owner:0x4\r
-Seg:e000 Size:131056 Owner:0x5e8d\r
+Seg:7e9 Size:577552 Owner:0x50fd\r
+\r
+MM_ShowMemory: Memory block order currupted!\r
16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ)
GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ)
-all: 16.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe exmmtest.exe fonttes0.exe fontgfx.exe sountest.exe miditest.exe testemm.exe tsthimem.exe inputest.exe testemm0.exe
+all: 16.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe exmmtest.exe fonttes0.exe fontgfx.exe sountest.exe miditest.exe tsthimem.exe inputest.exe
+#testemm.exe testemm0.exe
#
#executables
modexEnter();
modexShowPage(&screen);
MM_ShowMemory(&screen, &mm);
- MM_DumpData(&mm);
getch();
- MM_Report(&screen, &mm, &mmi);
+ MM_DumpData(&mm);
modexLeave();
+ MM_Report(&screen, &mm, &mmi);
printf("stop!\n");
MM_FreePtr(&bigbuffer, &mm);
MM_Shutdown(&mm);
union REGS CPURegs;
unsigned int EMSVer = 0;
- byte EMS_status;
+ byte EMSstatus;
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 [EMSstatus],ah
jnz error
mov ah,EMS_VERSION
mm->EMSpagesmapped=EMSpagesmapped;
mm->EMShandle=EMShandle;
mm->EMSVer=EMSVer;
+ //mm->EMSstatus=EMSstatus;
return 0;
}
void MM_Report(page_t *page, mminfo_t *mm, mminfotype *mmi)
{
+ printf("\n");
if(MML_CheckForEMS())
{
- printf("EMM v%x.%x available\n", mm->EMSVer>>4,mm->EMSVer&0x0F);
+ printf("Expanded memory manager present. EMM v%x.%x available\n", mm->EMSVer>>4,mm->EMSVer&0x0F);
printf("totalEMSpages=%u\n", mm->totalEMSpages);
- printf("freeEMSpages=%u\n", mm->freeEMSpages);
+ printf("Page frame @0x%04x\n", mm->freeEMSpages);
printf("EMSpageframe=%x\n", mm->EMSpageframe);
}
if(MML_CheckForXMS(mm)) printf("XMSaddr=%Fp\n", *XMSaddr);
boolean mmstarted, bombonerror, mmerror;
void huge *farheap;
void *nearheap;
- byte EMS_status;
+ byte EMSstatus;
unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
unsigned int EMSVer;
word numUMBs,UMBbase[MAXUMBS];