From 6dbc75c64047ca8ab3769944311bf692b6e0915e Mon Sep 17 00:00:00 2001 From: baillyj Date: Fri, 17 Dec 2021 15:13:37 +0100 Subject: [PATCH] Upload files to '' Ok --- Instruc.o | Bin 0 -> 5000 bytes core | Bin 0 -> 16248 bytes core.o | Bin 0 -> 3448 bytes corewar.out | Bin 0 -> 17184 bytes main.c | 20 ++++++++++++++++++++ 5 files changed, 20 insertions(+) create mode 100644 Instruc.o create mode 100644 core create mode 100644 core.o create mode 100644 corewar.out create mode 100644 main.c diff --git a/Instruc.o b/Instruc.o new file mode 100644 index 0000000000000000000000000000000000000000..20eaf928f68762940cfa142da8b7f18b450460df GIT binary patch literal 5000 zcmbtWTWnNC7@pl0S}yGttVjZeB~k+cR{CHRLU4OI?SQT2(jq~Ub=hvE((cyXQ)rD< zajA0LES85R#`t0)YT^qoHVp};)udD(OasQ$wV8r6vtm}nnz;2VPu$wUt)6jib&m0* zF~%)phRX58O_ya%r4L;-rVA(}?N1t0JOs)Nca3=lm}g)tX-r$g*Y8_ni3!&^Tt*e75Z{n3`pLQjBrdjvpMEexgrdapqIi8^OefO;x&Y4>!^a*OU#G78P zd{3CmrO%ZvklvgqmRwWZyTGu_ZM0$gsITH|Uq+udy+)vVFZm;c%P!X2$4y6~_1g9N z<0X9fH}CNMW!CWUpBuJ(Z}peZS0=@~^_qVJV_U|oUSM2oOF2fz=u#1lcP<*O^zt)8 z1&WC)&|_V<0m7L9Q6tbkP)u-XGBbn^%ZTIQE-}TqFSAV^v7yBuWG6F0$)=fRzO_`G zM{|idck%=$ZtbUpGDr#K(wq}(4DvbWk52O_rIkzbdXR8NFJt3;Ep|_KaeGFY=j`J+ zP>G%~s;;K$DQxL+>mU z>gB2WJ30NQ{1WcJrwrL54mCDlf`a$OEDsin_ zSy0$V&h>=jfqj5iMRCcy?y91t?)Qn2@$Cjq_6;(w^5%+0>IlZ-VZ<;B3w3mhqP+t}TR6gkX0(+B z0&z1KIvEI^I2mXOwzjcQG;%5&GizGg!m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z@Q{e7;sy|rjFB~Ru%ad+7M9xUMpBR9V*4xzqG^37ksb&q^r(@}Wc6@vR7BFrkwnah zMd2Y-(gK(N$MtX~6CTrJDI+r`1~cJgOpoT0$uW@FN;>wW$TX79Sbgo<9oQbyLpy>x zEb%Y4iwZsX#T|j|-JQiXa(@9(@R-y?nr?Z}g1d#jt!HOPphw@?)wL(otM>*vdP3+` z?n;PcbF#;uyyqYm4I5#Q6z_gedG|sK?Sm)~xSipSZ4ZuGbZKp4pp6oa`r>U4dNiBX zhr_8TZh`3D3BqVRrRTCS2*<*iU_hZfkj;{3x!uCro#Ai~n<_ZIxZ9%S7K-Bi97PU< zKRcE*!UKS?_e0_^=U_`nEHfhfa^wxAa{iG_dL))H#%$C;E)Ls&;!&ak9o>yMHvMQm z9L^34e{?JbO;~7TteP*yGTC@KRaDTSE)z?HQ9!wogdzMg7Jef(3V9rpP?wgM(H|S8 zQ8*k0Etf2XH5@Gk=fQC}8IM4#Y48O$nvXV(jr zjGHWMqap+A7`-62>v=xgMtbh2Q(q{97=3a7c^;^dp4(x2Y|EaisC_aoRI%PUS7*H) zdF&O$km)Cf3Jo}X4&%Ec_lKXK_&(2lhioAop@I9f!#TIhhB!?wrGE$iFhRQCA#fDM FKLGgM&tw1q literal 0 HcmV?d00001 diff --git a/core.o b/core.o new file mode 100644 index 0000000000000000000000000000000000000000..b43add39c65f241ee6e50511f65195683f9217f8 GIT binary patch literal 3448 zcmc(iPiz!b7{K3d3s`NTU_&&Jbc|x!03%Dh)EKjEGws7{tpS$c0oUowEM2?1)6C3j z(KMJ;O(vVho>Wd=Jn2D>hD2;3+QkG?@X|vMy_i(Xp4HWH!5s zI()VxQn&>=-(y$g2T4?o<-|2^UE_uMD9<%*VY4l~jd|7zHOw$v>aFoF`E1uu!bjDp zaWJVGt2|83fVl`DLw_-fVddc*BcBp8xLAO%0wXz#%Mc1^oGdQiK z^hfoNNBV4daPSqaXZVe5ua-*bDg7883zSxPGyi_R4^Fbg zRA=Hq`>rSEVDcbvd{8bY;nlyp^V8&D$Ig~-lb|BzUKO(p?xiw+0%w~G#%*PPK5V4X z((spnu@=HV$o^sw{6ey{b+QYM!pkNCdGMme3l!| zj1Kf?a-%~-r;O9N)BOV(BgcY5$zi@{mTi`IC!I3O`;Ifga=C)pP&}2c|WVv&JWKd9zSt&Xi-FDEk4XhVoq0h?9V4;{L-(dK8YI65>Y{ z{-nb5lH*awGei0%g|{gD{TP2B<6?bL(8p8oke{y+f*@~)hxiW&K`<`*--iQ`n^7b5 zJD^Yc-SXn1AKWA2Mj7bpJvrFvp+`yr>wu9K+qCOO2*2ZCo3ZRs2K3__3> z;Xy9d5D9q@i%UEn{|HQ=&$vASibwXCt19@NLZ92hNrywKveZ>kpJc~W2>l^x|8$H~ z{?rag`}mfS#m0DRGJZ`i7=LpxPTU@SHY(L+{Lulq6gBmCyncA+8`*y(^RIsprH8ov EzxL8~#sB~S literal 0 HcmV?d00001 diff --git a/corewar.out b/corewar.out new file mode 100644 index 0000000000000000000000000000000000000000..ff355c3b5ce696ec86f1498e5194d4771615b51e GIT binary patch literal 17184 zcmeHOe{@vUoxd~Tw=fA9Fe=Ib#s!rjARyF5Wr52eEGZPq1GI4&`#7Y|* z!f_fS)YWRc98Y#nYdPE9v(&mA50z~Km87lR4dAhcmXKcl~86BI$OblDc6uF+2u?9la++2C{jGxji;>U zt@N3xN{=baGvzszTv%wQzCWgBJBm$ek+Msz&ZWJUxUe0;WH+MiMzkH%0jdxZQ;sLa zgnlb^Jgw9X86~&83SqTt(sou_q4k+k8I(4^6A%752b9B zh*&%tXlxd-sJ|g7Y9o!I2GN*^$3#3_9}+%aEbb3H=nL$6&{yjZ*NNItq?SzTpjIEM zkA>o*HWms!2+eRT5?Hm$R~rlX8)`*upe_;%34c5i7PXDha6`NnI)Ns?uQuG^uM0mC zk|ozS0>zLEP(jhSuihVS5X94nTOrn0RhF;yEp;u+r<+uD#~ctF(U2q-#ASbN7F=ZPO4+<6^N&i<@u&K z9G*ra^m&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ggym$Re_%xl(wA7JGhPXX<1{ zO|AC#0>_{DB3ysoe=_C!=l!R({(jig-jnSIbp4qw&;q(giZk2uJ~0f8OxT|HyG(h1 z3l*8jhdDh2hW3(d&-+KF_+D2gu0QKB{TigSH)Wpprx~j4t@YQi=s<>I%Jwa!h{Uu@ za@qa6_5PoQob1cB9`CoA^8TFaPfNGe{_lWMO!)rjQA#FF`8|Y2Wm%jjdH_GOy;Iv| zs3qVQ_u>Z@dw!l`>g5*`R2UN5D^7@iLdIM^KW{VT_bjY$?Y}?P_8foV)S8<9QnO5~ z_CJAu%4hr6oJy1FHpOPHR(rLt%i1rPt5lgbk#kex_G9QYGW6`GhfQW*%IC4I`ph%^ zEo=)-_Ph_KZ`LWXp5n4R<3kWo-{JCkU&-g|2Xy^)x6b(EcDw*vQek^OXW6eGs24zH zPFyb2Parhg3%AxTQ?ygFOxTX89mZz+PPfwR)b?CYt9^!tG5O;9^YiziJoeW1pQg*# z>g-mqz1|jNaH=aMGv&UgB literal 0 HcmV?d00001 diff --git a/main.c b/main.c new file mode 100644 index 0000000..545b24c --- /dev/null +++ b/main.c @@ -0,0 +1,20 @@ +#include +#include +#include + +#include "Instruc.h" +#include "core.h" + +int main (int argc, char* argv[]){ + long mainMemory[8000] = {}; + convertFile("redcode/redcode.ass","redcode/virus1.mars"); + convertFile("redcode/redcode.ass","redcode/virus2.mars"); + setupViruses(mainMemory); + + for (int i = 0; i < 8000; ++i) { + if (mainMemory[i] != 0) { + printf("%d -> %ld\n", i, mainMemory[i]); + } + } + +} \ No newline at end of file