]> 4ch.mooo.com Git - 16.git/commitdiff
xms Works but it is quick and dirty and reliese on older C code with _REG defs and...
authorsparky4 <sparky4@cock.li>
Thu, 29 Sep 2016 20:18:51 +0000 (15:18 -0500)
committersparky4 <sparky4@cock.li>
Thu, 29 Sep 2016 20:18:51 +0000 (15:18 -0500)
src/lib/16_mm.c

index 282814bdd77566eff9f03cc15cb49f500f3e94cc..075f54b09c502505286356e617b5c31b31aa8016 100755 (executable)
@@ -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");
 }
 
 //==========================================================================