]> 4ch.mooo.com Git - 16.git/commitdiff
HUGE and such added~
authorsparky4 <sparky4@cock.li>
Thu, 2 Jul 2015 03:36:10 +0000 (22:36 -0500)
committersparky4 <sparky4@cock.li>
Thu, 2 Jul 2015 03:36:10 +0000 (22:36 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c

exmmtest.exe
src/lib/16_mm.c

index 09edfebaf24769432046889ef2264e17241bd1aa..e4e63f5b16921909fa8d3600102bb3eb454a932c 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 17eca573f219c9ffb9a7b8c4af5af8605f1ce207..1214f37fb4956b4d18277227ded9d1f18058ad2a 100644 (file)
@@ -436,6 +436,7 @@ void MML_UseSpace(unsigned segstart, unsigned seglength, mminfo_t *mm)
 //
        oldend = scan->start + scan->length;
        extra = oldend - (segstart+seglength);
+       //++++emsver stuff!
        if(extra < 0)
        {
                printf("MML_UseSpace: Segment spans two blocks!");
@@ -665,8 +666,7 @@ void MM_Shutdown(mminfo_t *mm)
 
 void MM_GetPtr(memptr *baseptr,dword size, mminfo_t *mm, mminfotype *mmi)
 {
-       mmblocktype huge *scan,huge *lastscan,huge *endscan
-                               ,huge *purge,huge *next;
+       mmblocktype huge *scan,huge *lastscan,huge *endscan,huge *purge,huge *next;
        int                     search;
        unsigned        needed,startseg;
 
@@ -1138,6 +1138,7 @@ void MM_Report(mminfo_t *mm, mminfotype *mmi)
                printf("freeEMSpages=%u\n", mm->freeEMSpages);
                printf("EMSpageframe=%Fp\n", mm->EMSpageframe);
        }
+       if(MML_CheckForXMS(mm)) printf("XMSaddr=%x\n", *XMSaddr);
        printf("near=%lu\n", mmi->nearheap);
        printf("far=%lu\n", mmi->farheap);
        printf("EMSmem=%lu\n", mmi->EMSmem);