From d3b921a6aa5b34df62eead7904b6d969a1416798 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 1 Jul 2015 22:28:20 -0500 Subject: [PATCH] huge pointers! modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- exmmtest.exe | Bin 39470 -> 40431 bytes src/lib/16_mm.c | 29 +++++++++++++++-------------- src/lib/16_mm.h | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/exmmtest.exe b/exmmtest.exe index a4658f2ab1197e765dc5423e4ce34f717aa5dce9..09edfebaf24769432046889ef2264e17241bd1aa 100644 GIT binary patch delta 12824 zcmZ{K3tUr2_W$JOCdBZ5CA=Yk2qG%J0P%%N5Cud;#1|2TC>22=fNd49=(e|);%>** z*4nP!wzk`DAFloF#^SaLKKl~2Yn4{(-?sjPSeF%xR4M$vGYR1KzyEwVH*>$|%$YN1 z&Y3y)lJ`Co{?#nhWiB62;)p~>lHFurph877giO^F5=QKw!wU$RlR=0XB!S#B3F!gN z&LU(ds2TJ(h?>Q2@exoN=nVQV@groKKOwJx{v1GvM<5}|pa#$fpie+w29i2*9SvO& zA!9%bLH__92Zh3d7*Hap5Oe}mWgz6Ga6(=Ky#qQ4N{Jxkb|fJIBMF%T+6?*~=q%_m z=x5N5XhJSdBqVPVA$ve?Pa))8(3vT9gnWlaSOOujpnA|dpszsML?{KtfEIwtLAyY& zgD!){B@vPZS_YCquY*1YT?Bm(x(jljivFM!P&%j>^x-r@u7F;ij{CY9ggg#<6Vwd) z0`$u)LJTQ{Oax5>WrFfRouIhcgw%qLg3g0(gYLY;9?+dsLKH?qd_dzs$)Kg6 z6KRBe4!Q$!o<~Rl$oLj6KZC;437G+^0qq0Ts=LJ>@I7ZfA&WtO1T}+x1}P8|de8(= z7RbDS&KBk=>ZvS@3HinIncsbTweh?y$5&^aL9)>bA`QnyhT5*ue+u!MZm}`1-$wio zxhbbBgzx+gWs3OTuRqkNTB4|P%g&LmN?H9)m*pMAAQ^k*9fCow?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unsigned seglength, mminfo_t *mm) void MML_ClearBlock(mminfo_t *mm) { - mmblocktype far *scan,far *last; + mmblocktype huge *scan,huge *last; scan = mm->mmhead->next; @@ -565,7 +565,8 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) //---- length=farcoreleft(); _fheapgrow(); length=_memavl(); - start = mm->farheap = _fmalloc(length); + start = mm->farheap = halloc(length, 1); + //start = mm->farheap = _fmalloc(length); length -= 16-(FP_OFF(start)&15); length -= SAVEFARHEAP; seglength = length / 16; // now in paragraphs @@ -604,10 +605,10 @@ emsskip: mmi->XMSmem = 0; for(i = 1;i < __argc;i++) { - if( US_CheckParm(__argv[i],ParmStringsexmm) == 0) + if(US_CheckParm(__argv[i],ParmStringsexmm) == 0) goto xmsskip; // param NOXMS } - 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! +// 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"); @@ -664,8 +665,8 @@ void MM_Shutdown(mminfo_t *mm) void MM_GetPtr(memptr *baseptr,dword size, mminfo_t *mm, mminfotype *mmi) { - mmblocktype far *scan,far *lastscan,far *endscan - ,far *purge,far *next; + mmblocktype huge *scan,huge *lastscan,huge *endscan + ,huge *purge,huge *next; int search; unsigned needed,startseg; @@ -765,7 +766,7 @@ void MM_GetPtr(memptr *baseptr,dword size, mminfo_t *mm, mminfotype *mmi) void MM_FreePtr(memptr *baseptr, mminfo_t *mm) { - mmblocktype far *scan,far *last; + mmblocktype huge *scan,huge *last; last = mm->mmhead; scan = last->next; @@ -803,7 +804,7 @@ void MM_FreePtr(memptr *baseptr, mminfo_t *mm) void MM_SetPurge(memptr *baseptr, int purge, mminfo_t *mm) { - mmblocktype far *start; + mmblocktype huge *start; start = mm->mmrover; @@ -842,7 +843,7 @@ void MM_SetPurge(memptr *baseptr, int purge, mminfo_t *mm) void MM_SetLock(memptr *baseptr, boolean locked, mminfo_t *mm) { - mmblocktype far *start; + mmblocktype huge *start; start = mm->mmrover; @@ -881,7 +882,7 @@ void MM_SetLock(memptr *baseptr, boolean locked, mminfo_t *mm) void MM_SortMem(mminfo_t *mm) { - mmblocktype far *scan,far *last,far *next; + mmblocktype huge *scan,huge *last,huge *next; unsigned start,length,source,dest,oldborder; int playing; @@ -992,7 +993,7 @@ void MM_SortMem(mminfo_t *mm) void MM_ShowMemory(mminfo_t *mm) { - mmblocktype far *scan; + mmblocktype huge *scan; unsigned color,temp;//, i; long end,owner; char scratch[80],str[10]; @@ -1070,7 +1071,7 @@ fprintf(stdout, "%s", scratch); dword MM_UnusedMemory(mminfo_t *mm) { unsigned free; - mmblocktype far *scan; + mmblocktype huge *scan; free = 0; scan = mm->mmhead; @@ -1101,7 +1102,7 @@ dword MM_UnusedMemory(mminfo_t *mm) dword MM_TotalFree(mminfo_t *mm) { unsigned free; - mmblocktype far *scan; + mmblocktype huge *scan; free = 0; scan = mm->mmhead; diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 7ef05e23..fb99af1d 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -125,7 +125,7 @@ typedef struct memptr bufferseg; boolean mmstarted, bombonerror, mmerror; //void huge *hugeheap; - void huge/*far*/ *farheap; + void huge *farheap; void *nearheap; unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; unsigned int EMSVer; -- 2.39.5