From: sparky4 Date: Sat, 4 Jul 2015 03:34:35 +0000 (-0500) Subject: ok almost ready! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=62cbd212900e125c2f8470a5ef85fe80938e1efa;p=16.git ok almost ready! modified: exmmtest.exe modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index 4f1afc4c..116852ed 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 4bf85c49..8a64d105 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -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: