]> 4ch.mooo.com Git - 16.git/commitdiff
ok almost ready!
authorsparky4 <sparky4@cock.li>
Sat, 4 Jul 2015 03:34:35 +0000 (22:34 -0500)
committersparky4 <sparky4@cock.li>
Sat, 4 Jul 2015 03:34:35 +0000 (22:34 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c

exmmtest.exe
src/lib/16_mm.c

index 4f1afc4ce30b7c070d2ae54b57624b16135b700d..116852edd625a1097ce66ec28f5d930836af1e79 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 4bf85c49027bed7e0d85dd688e681a4b0e169c4f..8a64d1055e8c8a019e11a8ef6f5c523cdd88fb7d 100644 (file)
@@ -424,8 +424,8 @@ 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;
+       ///*d*/word fat=0;
+       //word segm=0;
        dword           extra;
 
        scan = last = mm->mmhead;
@@ -448,13 +448,25 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
        //++++emsver stuff!
        if(extra>0xfffflu)
        {
-               /*segm=(extra%(0xfffflu))-1;
-               fat=segm*(0xfffflu);
-               extra-=fat;*/
-/*printf("extra=%lu    ", extra);
+               /*__asm
+               {
+                       push    ds
+                       mov     ax,ds
+                       inc             ax
+                       mov     ds,ax
+               }*/
+printf("extra=%lu      ", extra);
 printf("oldend=%lu     ", oldend);
-printf("segm=%lu\n", segm);*/
-               printf("MML_UseSpace: Segment spans two blocks!\n");
+printf("length=%lu     ", scan->length);
+printf("seglength=%lu\n", seglength);
+
+//MML_UseSpace(?segstart?, ?length?, mm);
+
+               /*__asm
+               {
+                       pop ds
+               }*/
+               //printf("MML_UseSpace: Segment spans two blocks!\n");
        }
 
 //segu: