From 2a0691e2dc6dc764a795215d163e5b51640440a2 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 6 Jul 2015 22:56:00 -0500 Subject: [PATCH] hmmm modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- exmmtest.exe | Bin 46243 -> 46242 bytes src/lib/16_mm.c | 2 +- src/lib/16_mm.h | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exmmtest.exe b/exmmtest.exe index 528d1d8677e84c8a5c7e5d20cd8697fe6f77e28b..e2b4fa1ac29cb904f2be6c78c48d26ac6bb1eac3 100644 GIT binary patch delta 2803 zcmYjSdr(y86~Eu!3%d)u%RcYEcv=@kc}AkOV$7&q(zMyxXv9b3Rvddx6%>$1##qrJ z#_Pq6dc@Ae*Vtt6(U{R<>~`>hfDs?@HB$>T6O*YW7h!M*aYfv)J(q_q|L{A%^Zd>| z=j>-aia+-#&RkZIYtXD%6}8a3d&i`%y8BWRq|vshFJs2V)J8YGJfhkmZiy1Okl-B@ z+`~SvMyx&O61bpPd)_5h1_f?N`04@@BSP&Zmsl{;q@aXA_I2sK1Rrv(zOH1Ep_Q|_ z(8k0j4XWx|vabu3K`AFeR@QMtV!lG0iT=GUP0YAnvL*=JV_#RzmSL*8+#+&=V!?1z zIE-Pv38MG0pzMtlTCXVy^}mGIxNeG)9>)8;BLdeixEbc9yED} zQ`-eDAadRI4uKmeFO?t%^yO+ks*X)+QiyyEVc~As}rtir6Z--y^*a>~US!GzJ^VNvP|KlWP|d zD@AS~nhVr6SJ6EOusIrG2-8WA444e#1*9vmIm$*(Kz-DFvKl(0oFBY3>U>SPl@j_^ z{MNg?g`pO`Td-uY@E;F0uN56XKIanublxQga>fZ?`&yF4++?v_Q5&paYQyFEO_7u^ zBn;r=La|s#OY$z|iLDi`6Lfh}lWIcs1FVQnQAE6e9no)-Vz?JQOFunU^ga^Z-T1kL zf`Bv`9GX=1uoLrOr~&x3CP#g7T>1(G%{)>Dw=|B}B~JOZ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tZtfh=w+U4K`J1n;IrGwPMxDFsDcO}v^&apw^|N_>Q<1yQY{RzY!B5%ns1 z5p^M|SJuOYO*!%grAGznFIw%~bR|WdQ)a2Sd<6YUr;5u%U{smGu{ldVLzS+D^opra zzF9u=X_Z6E0a|0Kn2O?#A)+;E4aJ>8v`4cC(RoCdG*=PfznqF_BG7HSuv~XrhbkZ9Dm|o_Dge?}P(Qwwt%~4a-3gZeR z#VtU@88<@ymMnR*@sKIbdwENm^`dc~iMx!}5o3voYelfeR03y^R%fa-$7zu*>DHsB zO=fO>5=C{J=9sy82xgn-K+a29@=9}>RqFGHTo-D0nOQ4$6TwyUkcB&npwrxGrnnn% z^r3}2iy+0~vQXT0MA;TpT|=AKu~3=g7;pUE>E+*n=FN`D^IZITi;6N@-!5+ z(fVdGmy6(-^#s_<^W^U)=dltCZj{>$^=LSk>}I)R2$ZZ2_LpbN^VsMUMv7(*8)i9` zmZDx|yCG7ZNk`c)A*~`;^9|c)<2Iw=8QU}PTtyB&Xp6$WiY)p+wg@y=Op`}#tL;)E zC1=**F4$JoZOx+B*m=m=>Y>-#_reQX-G=@4<914RFr8~ePM!S-yn)IS_H*OPUQ{;N z8{zuae8M)3Zp~GaFPgG{mmhead; mm->mmrover = mm->mmhead; // reset rover to start of memory - scan->segm=1; // // search for the block that contains the range of segments @@ -444,6 +443,7 @@ void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm) { scan->segm=seglength/0xfffflu; } + else scan->segm=1; // // take the given range out of the block diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 44ea845d..8f064ce0 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -114,11 +114,11 @@ extern void (* XMSaddr) (void); // far pointer to XMS driver typedef struct mmblockstruct { - word start,length; + word start,length,segm; //dword start,length; //word start; //dword length; - word segm; //how many 64kb segment blocks it takes up if there is many data! + ///word 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; -- 2.39.5