From: sparky4 Date: Thu, 29 Sep 2016 20:18:51 +0000 (-0500) Subject: xms Works but it is quick and dirty and reliese on older C code with _REG defs and... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=c93c0e256ef061bce6a9edf9084b791e6ac838d1;p=16.git xms Works but it is quick and dirty and reliese on older C code with _REG defs and the Assembly translation is not smooth --- diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 282814bd..075f54b0 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -1619,7 +1619,8 @@ void MM_Report_(global_game_variables_t *gvar) printf(" %cLIMEMS %u\n", 0xC9, gvar->pm.emm.EMSPresent); printf(" %c%cEMM v%x.%x available\n", 0xC7, 0xC4, gvar->pm.emm.EMSVer>>4,gvar->pm.emm.EMSVer&0x0F); printf(" %c%ctotalEMSpages: %u ", 0xC7, 0xC4, gvar->pm.emm.totalEMSpages); printf("freeEMSpages: %u\n", gvar->pm.emm.freeEMSpages); - printf(" %c%cEMSPageFrame: %04x\n", 0xD3, 0xC4, gvar->pm.emm.EMSPageFrame); + printf(" %c%cEMSPageFrame: %04x\n", 0xC7, 0xC4, gvar->pm.emm.EMSPageFrame); + printf(" %c%cEMSmem: %lu\n", 0xD3, 0xC4, gvar->mmi.EMSmem); } if(MML_CheckForXMS()) { @@ -1627,13 +1628,13 @@ void MM_Report_(global_game_variables_t *gvar) //++++ printf(" XMS v%x.%x available\n", gvar->pm.xmm.XMSVer>>4,gvar->pm.xmm.XMSVer&0x0F); printf(" %c%cXMSDriver: %Fp\n", 0xC7, 0xC4, XMSDriver); printf(" %c%cXMSHandle: %04x\n", 0xD3, 0xC4, gvar->pm.xmm.XMSHandle); + printf(" %c%cXMSmem: %lu\n", 0xD3, 0xC4, gvar->mmi.XMSmem); } printf(" %cConv. %u\n", 0xC9, gvar->pm.mm.MainPresent); DebugMemory_(gvar, 0); //printf("mainmem: %lu\n", gvar->mmi.mainmem); //printf("Total convmem: %lu ", gvar->mmi.mainmem); printf("TotalFree: %lu ", MM_TotalFree(gvar)+gvar->mmi.EMSmem+gvar->mmi.XMSmem+gvar->mmi.XMSmem); printf("TotalUsed: %lu\n", gvar->mmi.mainmem); //printf(" UnusedMemory: %lu\n", MM_UnusedMemory(gvar)); printf("nearheap: %lu ", gvar->mmi.nearheap); printf("farheap: %lu\n", gvar->mmi.farheap); - if(MML_CheckForEMS()) printf("EMSmem: %lu ", gvar->mmi.EMSmem); if(MML_CheckForXMS()) printf("XMSmem: %lu", gvar->mmi.XMSmem); printf("\n"); } //==========================================================================