From: sparky4 Date: Tue, 7 Jul 2015 03:56:00 +0000 (-0500) Subject: hmmm X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=2a0691e2dc6dc764a795215d163e5b51640440a2;p=16.git hmmm modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- diff --git a/exmmtest.exe b/exmmtest.exe index 528d1d86..e2b4fa1a 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 c499ea28..5c658bb7 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -428,7 +428,6 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) scan = last = mm->mmhead; mm->mmrover = mm->mmhead; // reset rover to start of memory - scan->segm=1; // // search for the block that contains the range of segments @@ -444,6 +443,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) { scan->segm=seglength/0xfffflu; } + else scan->segm=1; // // take the given range out of the block diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 44ea845d..8f064ce0 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -114,11 +114,11 @@ extern void (* XMSaddr) (void); // far pointer to XMS driver typedef struct mmblockstruct { - word start,length; + word start,length,segm; //dword start,length; //word start; //dword length; - word segm; //how many 64kb segment blocks it takes up if there is many data! + ///word segm; //how many 64kb segment blocks it takes up if there is many data! unsigned attributes; memptr *useptr; // pointer to the segment start struct mmblockstruct huge *next;