OSDN Git Service

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 f5938d3..9faf645 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 398fd08..0246d4e 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 6aac19b..984f932 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;