From c93c0e256ef061bce6a9edf9084b791e6ac838d1 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 29 Sep 2016 15:18:51 -0500 Subject: [PATCH] xms Works but it is quick and dirty and reliese on older C code with _REG defs and the Assembly translation is not smooth --- src/lib/16_mm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"); } //========================================================================== -- 2.39.5