From: sparky4 Date: Tue, 7 Jul 2015 04:34:42 +0000 (-0500) Subject: block type cannot segm count X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=c2232861cecc70fa360f0feca24c982c3d7e430e;p=16.git block type cannot segm count modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- diff --git a/exmmtest.exe b/exmmtest.exe index f5938d31..9faf6457 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 398fd082..0246d4e1 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -423,6 +423,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; dword oldend; dword extra; @@ -439,11 +440,11 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) } //find out how many blocks it spans! - /*++++if(seglength>0xffffu) + if(seglength>0xffffu) { - scan->sega=(word)seglength/0xffffu; + segm=seglength/0x4000u; } - else scan->sega=1;*/ + else segm=1; // // take the given range out of the block @@ -460,7 +461,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) inc ax mov ds,ax }*/ -//++++printf("sega=%u ", scan->sega); +printf("segm=%u ", segm); printf("ex=%lu ", extra); printf("len=%u ", scan->length); printf("segsta=%x ", segstart); diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 6aac19b7..984f932c 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -118,7 +118,7 @@ typedef struct mmblockstruct //dword start,length; //word start; //dword length; - //++++word sega; //how many 64kb segment blocks it takes up if there is many data! + //byte 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;