From: sparky4 Date: Mon, 13 Jul 2015 01:50:46 +0000 (-0500) Subject: OH SHIT! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=8887e1292abee65a4736ad5ebe9400c7dd4c10c7;p=16.git OH SHIT! modified: exmmtest.exe modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index ad5924fe..0b399790 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 a65c193f..065289cd 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -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);