From: sparky4 Date: Mon, 6 Jul 2015 17:03:56 +0000 (-0500) Subject: added segm thingy to determine how many sements are needed~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=2588b333e82d462937d437971a2d881299782076;p=16.git added segm thingy to determine how many sements are needed~ modified: exmmtest.exe modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index 941d38e0..ac2747e9 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 89c2765f..7ef1d7e0 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -425,7 +425,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) mmblocktype huge *scan,huge *last; dword oldend; ///*d*/word fat=0; - //word segm=0; + word segm=0; dword extra; scan = last = mm->mmhead; @@ -440,6 +440,11 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) scan = scan->next; } + if(seglength>0xfffflu) + { + segm=seglength/0xfffflu; + } + // // take the given range out of the block // @@ -455,11 +460,11 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) inc ax mov ds,ax }*/ -printf("extra=%lu ", extra); -printf("oldend=%lu ", oldend); -printf("length=%u ", scan->length); -printf("segstart=%u ", segstart); -printf("seglength=%lu\n", seglength); +printf("ex=%lu ", extra); +printf("segm=%u ", segm); +printf("len=%u ", scan->length); +printf("segsta=%u ", segstart); +printf("seglen=%lu\n", seglength); //MML_UseSpace(?segstart?, ?length?, mm);