]> 4ch.mooo.com Git - 16.git/commitdiff
added segm thingy to determine how many sements are needed~
authorsparky4 <sparky4@cock.li>
Mon, 6 Jul 2015 17:03:56 +0000 (12:03 -0500)
committersparky4 <sparky4@cock.li>
Mon, 6 Jul 2015 17:03:56 +0000 (12:03 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c

exmmtest.exe
src/lib/16_mm.c

index 941d38e0435860e3676e1d83fd5a773e434208c2..ac2747e9e2ffa5f8062ff53bfafa62d23f663ba0 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 89c2765f87eba622781d3779a216d1f462a5b3b9..7ef1d7e03a0202a852273998a7cd50df1b5484b8 100644 (file)
@@ -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);