From: sparky4 Date: Mon, 13 Jul 2015 00:30:38 +0000 (-0500) Subject: pusing~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=d45a99ed2ea331a9d2f19b20494fec509fc0efb5;p=16.git pusing~ modified: exmmtest.exe modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index 9e149130..9c37fdc9 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index cf7e431c..1800c7d5 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -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 } //