]> 4ch.mooo.com Git - 16.git/commitdiff
ok!
authorsparky4 <sparky4@cock.li>
Tue, 21 Jul 2015 13:43:31 +0000 (08:43 -0500)
committersparky4 <sparky4@cock.li>
Tue, 21 Jul 2015 13:43:31 +0000 (08:43 -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 8903757dd25bf2b7c1f68adc0e34e7f75f070b46..921a722554a8214c223685d90dc305dbb8f5086b 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 24f78c5bd67e5499be869a796f1f7b99b59a22d0..3d81976c80c65907c71d2804796a11c260256b6f 100644 (file)
@@ -372,6 +372,7 @@ char        str[80];//,str2[10];
        }
        return 0;
 */
+       return 0;
 }
 
 //==========================================================================
@@ -499,7 +500,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;
+       //word          segm;
        dword   oldend;
        dword           extra;
 
@@ -518,13 +519,13 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
        //find out how many blocks it spans!
        if(seglength>0xffffu)
        {
-//             segm=seglength/0x4000u;
-               segm=seglength/0xffffu;
+//             scan->segm=seglength/0x4000u;
+               scan->segm=seglength/0xffffu;
        }
-       else segm=1;
+       else scan->segm=1;
 
        //++++emsver stuff!
-       if(segm>1/*extra>0xfffflu*/)
+       if(scan->segm>1/*extra>0xfffflu*/)
        {
                /*__asm
                {
@@ -550,7 +551,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
        oldend = scan->start + scan->length;
        extra = oldend - (segstart+seglength);
 
-printf("segm=%u        ", segm);
+printf("segm=%u        ", scan->segm);
 printf("ex=%lu ", extra);
 printf("start+seglen=%lu       ", segstart+seglength);
 printf("len=%u ", scan->length);
index 2981a1a389755ff1fec8b0e235844a35d87be781..13b6b5e9ce3e9c873d70715ddb0e2aaa44f7f5ae 100644 (file)
@@ -122,7 +122,7 @@ typedef struct mmblockstruct
        //dword start,length;
        //word  start;
        //dword length;
-       //byte 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;
@@ -133,7 +133,6 @@ typedef struct
 {
        memptr bufferseg;
        boolean         mmstarted, bombonerror, mmerror;
-       word segm;
        void huge       *farheap;
        void            *nearheap;
        //byte          EMS_status;