]> 4ch.mooo.com Git - 16.git/commitdiff
block type cannot segm count
authorsparky4 <sparky4@cock.li>
Tue, 7 Jul 2015 04:34:42 +0000 (23:34 -0500)
committersparky4 <sparky4@cock.li>
Tue, 7 Jul 2015 04:34:42 +0000 (23:34 -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 f5938d31687065be04efadf9cafefe80e557cbcf..9faf645790c9ad82ecc71be7637c4deaaa9075c9 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 398fd082d173cc1a3b382ed2ef4c835269c2c229..0246d4e191e2f7b31aed686aef19866aad9eafb5 100644 (file)
@@ -423,6 +423,7 @@ void MML_ShutdownXMS(mminfo_t *mm)
 void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
 {
        mmblocktype huge *scan,huge *last;
+       word            segm;
        dword   oldend;
        dword           extra;
 
@@ -439,11 +440,11 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
        }
 
        //find out how many blocks it spans!
-       /*++++if(seglength>0xffffu)
+       if(seglength>0xffffu)
        {
-               scan->sega=(word)seglength/0xffffu;
+               segm=seglength/0x4000u;
        }
-       else scan->sega=1;*/
+       else segm=1;
 
 //
 // take the given range out of the block
@@ -460,7 +461,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
                        inc             ax
                        mov     ds,ax
                }*/
-//++++printf("sega=%u  ", scan->sega);
+printf("segm=%u        ", segm);
 printf("ex=%lu ", extra);
 printf("len=%u ", scan->length);
 printf("segsta=%x      ", segstart);
index 6aac19b7e814a9c636229436e69ca5c8fdb89994..984f932c00adc443128e5d90d383296b316a8f8a 100644 (file)
@@ -118,7 +118,7 @@ typedef struct mmblockstruct
        //dword start,length;
        //word  start;
        //dword length;
-       //++++word sega;                                //how many 64kb segment blocks it takes up if there is many data!
+       //byte 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;