From 8887e1292abee65a4736ad5ebe9400c7dd4c10c7 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sun, 12 Jul 2015 20:50:46 -0500 Subject: [PATCH] OH SHIT! modified: exmmtest.exe modified: src/lib/16_mm.c --- exmmtest.exe | Bin 46182 -> 46208 bytes src/lib/16_mm.c | 26 +++++++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/exmmtest.exe b/exmmtest.exe index ad5924feff73680ad1670ec162a5bacca9661f0c..0b399790aaf9fe86dd999f466d24d53e59686f4c 100644 GIT binary patch delta 5068 zcmZWt3tUr2*1wZ`@7w?yk;fGu1W<@YQHjz>LGVd@Ax2Sg(Sj&Yu?Q?AU|mHNv0N^u z)$!eaRE%16tE*r5+*B-5@V#pl?fTt0*EGjTt zbU~kH$zX+x>Lz2o&@KQ(&eK6MIZHa|K`g_XprvHOoEVleI0-z%k|d_TB+h5NQ8f9Q z@kPGo9~c`#C&&-jht<<9MvC0Tk!UCJ=G5xpuM1DhZMm;_%Y8~`^?faBUlpFlLfglQ z34dBpD{7zHw9i{YZR+YSh@^8fCS`G@IGd|*Jz=xilv$ihwV_wR%cBOj3Rg#0FBi&Q z*@SJKHqfWzE$yItm84kIc0%_L=q@L(xpgRu6v%nxMYhW|h$279eNZ!bDED8}-$&54 zwQ}dQZHQ{6BM>Fd>#USfLc99HIjxnVthhsby(ZI#e@eE)Tk0Ul{ix-bvam&0L_>l!b_pu8s#QxJH*@&f1r7{<0+cX}JOJ*3&r8ewLYSmf%b61TefSqr>{T4RmK zh|w~Yz^PywAik0Rmz$r!2n$J(v)_m@60cFzK2%>2IAcPON`{h@*md~YW#_m8${zUm z8ipd*omZeq=9w<-2rVJwdj5If?=OrAuOLT+CXrV6Bw0s9Mk3v`<za=B)%s+|YJcni2^pstg+>s)B4QFKRn;|XL?!5K{!g7+Z_qi|rhU|U#jX*QSigD- zO2Khko`YH!-g1gORm_}m2BsVR)Yt$rak8@**Tedx7jL-&sGr2QPJ0S$H=$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bW{`wlS zDlV2V^U= za|_awa|^SRGcvPb&NBm|h`d>A(jqc*0KM=!8vWjy$ka7}?jJyN3)ZA&<-)WF{tL^@ z5izK3FFg&s+%yKpeoc7Z7yX0$l|O{mk(7#=a9jMcLWNq5S1Q^iaHl%5r4nr8!;^iGj(GFwTCme!n#Fm}n9dO^y zK&X>fb|wwmHJ~hc;XAWp=M^kYT_HwkwlU&Ug#`HZK-DAhd%Wy^l~C|+9Cs>_ zlAUwnjmN$nS&F1M^Q zdyxIp+H!-|9nxLpLLPl_44C`(dV1EgSy0eKiH+^}itQt^jd%CjA)t0wb)q}u`j_jW zonY{UXR%=(Ag2uCl)qRJS#>%aM^jWDNvUxmTdHf&CNgo~IG1`>3aS*ZrWh|OCWZU{ z$cknkBt82wK}SlB_`Fc#=Y0p3`1)rAbR^WrZ&MT_36xM&JsJAdJO|s7rh@DaS@l(> zcRgGtU;o%fjZ=xErde4JzY=X7vELKyp0;1Ke)Il)Z`Fzxvm=3_7Im`>={5`{(Fg26 zo^Zg=!RD5^q6VY>z&vnstart + 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); -- 2.39.5