]> 4ch.mooo.com Git - 16.git/commitdiff
hmmm
authorsparky4 <sparky4@cock.li>
Tue, 7 Jul 2015 03:56:00 +0000 (22:56 -0500)
committersparky4 <sparky4@cock.li>
Tue, 7 Jul 2015 03:56:00 +0000 (22:56 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c
modified:   src/lib/16_mm.h

exmmtest.exe
src/lib/16_mm.c
src/lib/16_mm.h

index 528d1d8677e84c8a5c7e5d20cd8697fe6f77e28b..e2b4fa1ac29cb904f2be6c78c48d26ac6bb1eac3 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index c499ea282b804e7102c6c2810bb110cd8d315c32..5c658bb79ff58564bfe2dcd30f790cda40a4324d 100644 (file)
@@ -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
index 44ea845dfe55a48a603724ebad40ee8e76c82803..8f064ce09d6e5363691704c288c8c8705026b2ce 100644 (file)
@@ -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;