]> 4ch.mooo.com Git - 16.git/commitdiff
pusing~
authorsparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 00:30:38 +0000 (19:30 -0500)
committersparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 00:30:38 +0000 (19:30 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c

exmmtest.exe
src/lib/16_mm.c

index 9e1491304f965eb012bccd0f2da33dfc4fd3a05e..9c37fdc9c0dd0d75a3f30e41ed8d9a0044e5cdcd 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index cf7e431c79ebf70de16615731c636d76759af1d4..1800c7d5bde45ba148ad6cf03dcce2460a66a0b9 100644 (file)
@@ -443,8 +443,8 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
        //find out how many blocks it spans!
        if(seglength>0xffffu)
        {
-               segm=seglength/0x4000u;
-//             segm=seglength/0xffffu;
+//             segm=seglength/0x4000u;
+               segm=seglength/0xffffu;
        }
        else segm=1;
 
@@ -454,7 +454,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
        oldend = scan->start + scan->length;
        extra = oldend - (segstart+seglength);
        //++++emsver stuff!
-       if(extra>0xfffflu)
+       if(segm>1/*extra>0xfffflu*/)
        {
                /*__asm
                {
@@ -656,7 +656,7 @@ emsskip:
        if(MML_CheckForXMS(mm))
        {
                printf("XMS!\n");
-               MML_SetupXMS(mm, mmi);                                  // allocate as many UMBs as possible
+               //MML_SetupXMS(mm, mmi);                                        // allocate as many UMBs as possible
        }
 
 //