From 86a3bdcff4baaa723755ec3bfa1417696aa9ff1b Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 3 Jul 2015 16:47:45 -0500 Subject: [PATCH] fack!! modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- exmmtest.exe | Bin 45831 -> 45707 bytes src/lib/16_mm.c | 32 +++++++++++++++++--------------- src/lib/16_mm.h | 9 +++++---- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/exmmtest.exe b/exmmtest.exe index 94072751a86cbaba097e67b1426913cef5cd77d0..2a9c45f43ce3522e95982d40e642add6090b8833 100644 GIT binary patch delta 17913 zcma)k30#!b`u};~d1n!jone*5WdKnVQ%Nz@)G-YaMbS(dQ5culf&om;fm~l-oR))T zT{D;J+G1IH@1^W^NlG%aM7v#FZdtaxI9(+(A|mGhJ!gjHdi#Ao|FQGVIp60j&w0-C zJm)#*9oqVxsC+BhXD!+zj3hgViR>gUm#QTOLeioLi6!pOo;ig41L+&2-;pxs67mev z_ejxMgft`lV;&*i^9jj7+JrP!AY>8JBS=o9n@AHyLfRyYwgagPNry4~qllfvAae%k z{sDwciYDX$(l;2re;jb69RmruiX;vKhLkdxkiAH!kOGE)S)^G=i;+r@UQZw-D3OrA z4JD)^iI8WJrVS$`YB(WdkY*#TK(Zli9&RUOA2M$vokO~a)P|He0u}EdWC4-|X)V&v zNC%P$If--`=}V;FkOD>#G8btH(wj*CM$+9$$ONQxqz8~5LE4Y>9@6JX|3T_E8j`Z( zaX-=lq*swXL|TwS$V>Nti7AAvMtW%)M2zG_av=qn30Zb8AzP8!br$W&85js@3(^jx zFOhB_rOrfONKYU=i*yv}6QpZM;(fr8=D&rAU zeW9k%dU2Tj+!sd0+?ll_r$eob*i>)RzAF%?nB1mhcc_yiGwU*maYxQ~nKkFsRl<%f z=f2qZzOJT8-4(?00R2MiR+1fi(MwGet29;E_`bBm+@ap|_0%ZzHr7obnR17kz-Smu z?TFaiX44t#iiwjxs2MljqIEPY=Jr&bD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lib/16_mm.c index 3ee4fc5f..87246929 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -341,7 +341,7 @@ boolean MML_CheckForXMS(mminfo_t *mm) void MML_SetupXMS(mminfo_t *mm, mminfotype *mmi) { - word base,size; + unsigned base,size; getmemory: __asm @@ -371,9 +371,10 @@ gotone: mov [size],dx done: } + printf("base=%u ", base); printf("size=%u\n", size); MML_UseSpace(base,size, mm); - mmi->XMSmem += size*16; - mm->UMBbase[mm->numUMBs] = base; + mmi->XMSmem += ((dword)size)*16; + mm->UMBbase[mm->numUMBs] = (dword)base; mm->numUMBs++; if(mm->numUMBs < MAXUMBS) goto getmemory; @@ -442,16 +443,17 @@ void MML_UseSpace(unsigned segstart, dword seglength, mminfo_t *mm) // // take the given range out of the block // - oldend = scan->start + scan->length; - extra = oldend - (segstart+seglength); + oldend = scan->start + (dword)scan->length; + extra = oldend - (dword)(segstart+seglength); //++++emsver stuff! if(extra>0xfffflu) { - segm=(extra%(0xfffflu))-1; + /*segm=(extra%(0xfffflu))-1; fat=segm*(0xfffflu); - extra-=fat; -//printf("extra=%lu ", extra); -//printf("segm=%lu\n", segm); + extra-=fat;*/ +/*printf("extra=%lu ", extra); +printf("oldend=%lu ", oldend); +printf("segm=%lu\n", segm);*/ printf("MML_UseSpace: Segment spans two blocks!\n"); } @@ -469,7 +471,7 @@ void MML_UseSpace(unsigned segstart, dword seglength, mminfo_t *mm) // segm--; - if(0xfffflu > extra > 0) + if(extra > 0) { MM_GetNewBlock(mm); mm->mmnew->next = scan->next; @@ -598,7 +600,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) // // detect EMS and allocate up to 64K at page frame // - printf("EMS\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); //bug! + printf("EMS!\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); //bug! mmi->EMSmem = 0; for(i = 1;i < __argc;i++) { @@ -612,11 +614,11 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) MML_SetupEMS(mm); // allocate space printf("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); //bug! //TODO: EMS4! AND EMS 3.2 MASSIVE DATA HANDLMENT! - MML_UseSpace(mm->EMSpageframe,((dword)mm->EMSpagesmapped)*0x4000lu, mm); + MML_UseSpace(mm->EMSpageframe,(mm->EMSpagesmapped)*0x4000lu, mm); //printf("EMS3\n"); MM_MapEMS(mm); // map in used pages //printf("EMS4\n"); - mmi->EMSmem = ((dword)mm->EMSpagesmapped)*0x4000lu; + mmi->EMSmem = (mm->EMSpagesmapped)*0x4000lu; } // @@ -632,7 +634,7 @@ emsskip: // printf("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); //bug! if(MML_CheckForXMS(mm)) { -//printf("XMS!\n"); + printf("XMS!\n"); MML_SetupXMS(mm, mmi); // allocate as many UMBs as possible } @@ -1158,7 +1160,7 @@ void MM_Report(mminfo_t *mm, mminfotype *mmi) printf("freeEMSpages=%u\n", mm->freeEMSpages); printf("EMSpageframe=%x\n", mm->EMSpageframe); } - if(MML_CheckForXMS(mm)) printf("XMSaddr=%x\n", *XMSaddr); + if(MML_CheckForXMS(mm)) printf("XMSaddr=%Fp\n", *XMSaddr); printf("near=%lu\n", mmi->nearheap); printf("far=%lu\n", mmi->farheap); printf("EMSmem=%lu\n", mmi->EMSmem); diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 373af5e3..38279368 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -110,12 +110,12 @@ extern void (* XMSaddr) (void); // far pointer to XMS driver #define PURGEMASK 0xfffc #define BASEATTRIBUTES 0 // unlocked, non purgable -#define MAXUMBS 10 +#define MAXUMBS 12 typedef struct mmblockstruct { - //unsigned start,length; - dword start,length; + unsigned start,length; + //dword start,length; unsigned attributes; memptr *useptr; // pointer to the segment start struct mmblockstruct huge *next; @@ -131,7 +131,8 @@ typedef struct void *nearheap; unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; unsigned int EMSVer; - word numUMBs,UMBbase[MAXUMBS]; + unsigned numUMBs,UMBbase[MAXUMBS]; + //dword numUMBs,UMBbase[MAXUMBS]; mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew; } mminfo_t; -- 2.39.5