]> 4ch.mooo.com Git - 16.git/commitdiff
OH SHIT!
authorsparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 01:50:46 +0000 (20:50 -0500)
committersparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 01:50:46 +0000 (20:50 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c

exmmtest.exe
src/lib/16_mm.c

index ad5924feff73680ad1670ec162a5bacca9661f0c..0b399790aaf9fe86dd999f466d24d53e59686f4c 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index a65c193f02c68b7335d0e20efc9077a74ae92ca5..065289cd9ecbf255afcc66c08fbf736426e2a813 100644 (file)
@@ -293,6 +293,7 @@ unsigned MM_MapEMS(mminfo_t *mm)
                        itoa(err,str2,16);
                        strcpy(str,str2);
                        printf("%s\n",str);
+                       printf("FACK! %u\n", err);
                        return err;
                }
        }
@@ -448,11 +449,6 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
        }
        else segm=1;
 
-//
-// take the given range out of the block
-//
-       oldend = scan->start + scan->length;
-       extra = oldend - (segstart+seglength);
        //++++emsver stuff!
        if(segm>1/*extra>0xfffflu*/)
        {
@@ -463,12 +459,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
                        inc             ax
                        mov     ds,ax
                }*/
-printf("segm=%u        ", segm);
-printf("ex=%lu ", extra);
-printf("start+seglen=%lu       ", segstart+seglength);
-printf("len=%u ", scan->length);
-printf("segsta=%x      ", segstart);
-printf("seglen=%lu\n", seglength);
+
 
 //MML_UseSpace(?segstart?, ?length?, mm);
 
@@ -479,6 +470,19 @@ printf("seglen=%lu\n", seglength);
                //printf("MML_UseSpace: Segment spans two blocks!\n");
        }
 
+//
+// take the given range out of the block
+//
+       oldend = scan->start + scan->length;
+       extra = oldend - (segstart+seglength);
+
+printf("segm=%u        ", segm);
+printf("ex=%lu ", extra);
+printf("start+seglen=%lu       ", segstart+seglength);
+printf("len=%u ", scan->length);
+printf("segsta=%x      ", segstart);
+printf("seglen=%lu\n", seglength);
+
 //segu:
 //++++todo: linked list of segment!
 //printf("segm=%lu\n", segm);