From b94851eef9966b4d5e1f2da0f3266182ff0a5a47 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sat, 23 May 2015 16:39:06 -0500 Subject: [PATCH] added memory images~ new file: doc/fig1-1_i.pcx new file: doc/fig1-1_i.png new file: doc/upmem.pcx modified: src/lib/exmm/emm.c --- doc/fig1-1_i.pcx | Bin 0 -> 18714 bytes doc/fig1-1_i.png | Bin 0 -> 3045 bytes doc/upmem.pcx | Bin 0 -> 29126 bytes src/lib/exmm/emm.c | 8 +++++--- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 doc/fig1-1_i.pcx create mode 100644 doc/fig1-1_i.png create mode 100644 doc/upmem.pcx diff --git a/doc/fig1-1_i.pcx b/doc/fig1-1_i.pcx new file mode 100644 index 0000000000000000000000000000000000000000..0de1cbdef87fab2466c22f8ec56d29711adb832a GIT binary patch literal 18714 zcmeI4$&w_+5r(tUOlC5fjy#V{Z=t&$LnplkZ=nMRovW*R7KYhim=T5nlEJ{NY!VaK1;iy2H-RxIwnFX7=48ClJ*ezE%H#DBk8{duKt{(I$>S6+Sf)hJ(l zU;TEqn*KQdDY-A^7$~+={yVLu?Q}YQG0p1uR9_z~YM)PQcfR!Z2h(o-#QiTOeZNot z&N=ruk%=uTAs4X?}g8 zd+pD5y4jP^ll`+9)HzVBr+E!8X6egCfNAhON~cpYs~$A)ouHB{o0-xlo!pId6L7r* z7?Pqf$^cVsRMa30S`bvDpVE^KTumFduBVMET(#=L0GlL@N`Ta!_Lw*_T9Y?wAt&2l z;)+@a2T?^+Y)QL?Rh^Et2o6F*4ruktHlrwBZt;1Ka45cs5m@7LHN?1`@EyYePK-(t zK%<5eX(hBb9D`qFr34<*pI3i~Y(2ji>U(G1PSlF?D9Y`;oj*sPn8&N_>eJPH7B(uz z^f{g0=A%%`I>pV*b>_(*OddFgNeKijv1i3J%a<-}_~KGTd2j+!tbfi)vd1UP6@$q@ODL5S6y!7C`}05MYlL<>3S7{<apMtSt2P+w)uO6!h1z;tX_S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{&% zwcrGcX?igwMCb(#&bTx(G)X6&>Dj&75^5aIM9F2ZKpws~H541kZm)uIa_#R0qzSNb z1xnZ((N;Sx5Nb`hJtjaJyp<=w>%9U+izRaaM{U6eK+2-i6iwdp<+lE!L8q^F zc{~2J12ya$!ij^Yh++|24ULaJ`cX%YxiT$s2-|KwLBS8AAu|-p_Gu@xJl+++Enxo| z449GXhcH#c)Yjt?D*f1LzWD9Z66MLu>lvmVCv4$Iv$iB3u8m(MXXa`yjv+fI(>KS4 zqibY2pbq5u#)Ji~pcGfR9m?2sbVG>7I36rchF=yF7zx`-y>^!q6P!fMz8s&PDo%|w zqV4EOycN<Nfy!FhOAA=;KG(7OrHOJCw4umQ0%aMoieZ1L z!mNA`#Xf@y9?TFNk|32A5{eNiL%&SgGcchL;PvW6$a%9D-305YD6<@APXIMnNp1@m zMWil|b&P`>l(-QQql9`I<&5qO>-ckT=puBX&_h$65wuADyN0H{Z|tj?j1pRFTbA`r z+cH%f#!`m5Si+oE$`3TOdO8g1=mY%eymddcJ@9|&f#3c953jxU+IGABH+YPC`v3p{ literal 0 HcmV?d00001 diff --git a/doc/fig1-1_i.png b/doc/fig1-1_i.png new file mode 100644 index 0000000000000000000000000000000000000000..76eb39d6df4ba9553c4ce424fd3a24dd4044f4b1 GIT binary patch literal 3045 zcmVG@CgYnuNVG+!>@ELR z(<}i>q1pTtDPqv0xc!|BN`iVm9NCubz78;NJWGfn@ z&D=#5KoQYgp7pt_0WxYh#39YMvHMffi~6w4Ij#J#{w`s316uL$q)`lm?knSt-@q z%x}O(_zSR9Lo0o>%9?C5Cy#kCO3a$k2z*bmYfCkpI2P1=-&|V^1a9E1EF7x(TpkA) zq?l~TYk^Ye_qEJYpc0LMshewojcdeYPooxSusBaRPuByXk-Qp0lN@Ut0?kJNBTzf$ zd^jsB@C$)`S6KwIr+93=+?kguTYN0QY;H8%Kz0o|f!uM}r!rKea(A_t=jdhjvWBa3 z@(i%dcoZY&WIo{FoXiMh)KHF`lR1DQj+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g17)_wO0=``C%`*3@GIQBn@d<#Q;Rrl*_=9AVb6$PpOMhw?bpJm81?L z#V(0fW0PuS>e^UP0^kGX>CffE0^kRij({Kh?ER9>m4XMAkvx8FvjSJ(3S5CJa0RZw z75LW!gOQ$f%SY^^E7tuFv+cpT<)iX~cZbG@2VyGQ%a)I&9zini2#O!(*ron9I%f~s z^@k5go1Dx)4qLIp7IIN|ccey zkj6-|x3lVj5>V@64Tn^|0CSLOxBnhk8suTe2@Iueb+Eeij;g2B(vza2aK_lOAb%q6 z=6xyft=!H7FBR{7?eg0|=PdB8;(g?Hx#8B(a<|KpRl~Q6x1wF9ow_||yG;9K0cX2R zJ9Psvwt88^z}PPLLFU$wvt6d0y8Y+v^7XU4_)6$>dCI*M!&;D8$Zx>wOa$aX;avX% zwJ8~W*@Sc%5Dy2S6vKL&0-*6BbY0gPtnXd0R{Ns>=}mrGv%EC@1wc*CAqKn$(U27b z5CmopuY3=5r9ef_A=tP{0!Er)aHwG?RT3%GXsF0J00000NkvXXu0mjfW@EX` literal 0 HcmV?d00001 diff --git a/doc/upmem.pcx b/doc/upmem.pcx new file mode 100644 index 0000000000000000000000000000000000000000..e3532d9e9e11a34b9f1c5a399cd71346387aee27 GIT binary patch literal 29126 zcmeI4>yF#T6~}251&V&=W8@Xu_vGtnC9UoF-Xu1H*7?xHvAtfW$%mo^TByJOIdkJ> zyHo zx_kP!su7@H^z*tpPVU!gWk5gL@9XOL`3r-8UFr94z+YDWAJxY2zp~%IR>#gCM~ZDI zQQP*>vAgzdk9qYEwl7l=n9DyMVctSvREKmK<0R)U_lk zCZtQmJ6F8W(=dT-ZsnwVTOc_11nXVFh~)wov1?PiRkc>eh&MtJx9Ds!BsR&d)P&so zf*Xs0iGe%zkw(usKVq5l#B&ANH0n@2PiVX92a|9|rwci!Bs9VR=Ydo0&sb(8%dbD= zUJ}&TOc(NXcDV&#SkArS1zype9IS9(r{B;+1sAdrQT{deoT2Tie`Z8)%7n=k;eJR~ zE8<2JG}rAO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1Gfe%j(WLlod-s #include -#include "memory.h" +#include "memory.h" + +#define PEMMDATAPAGENUM 4 void TransformData(char *pEmmData, unsigned int len) { @@ -71,7 +73,7 @@ int main(int argc, char *argv[]) printf("Map 1st 4 pages\n"); - MapEMM(hEData, 0, 4); // load 1st 4 pages into page frame: 0-3 + MapEMM(hEData, 0, PEMMDATAPAGENUM); // load 1st 4 pages into page frame: 0-3 //memset(pEmmData, 0x0e, 64000u); //0000 printf("(advi*EMMPAGESIZE)=%lu\n", advi); memset(pEmmData, atoi(argv[1]), 0xffff);//sizeof(atoi(argv[1])));//((EMMCoreLeft())*EMMPAGESIZE)); @@ -123,7 +125,7 @@ int main(int argc, char *argv[]) }*/ if(!atoi(argv[3])) { - UnmapEMM(hEData, 0, 4); // should unmap before freeing + UnmapEMM(hEData, 0, PEMMDATAPAGENUM); // should unmap before freeing //printf("after EMS *pEmmData=%c\n", *pEmmData); printf("Close emm\n"); EMMFree(hEData); // finished with the file data -- 2.39.5