From e36de724927b1a1dd51c43a3bb9203efb29634e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Jos=C3=A9=20de=20Oliveira?= Date: Sat, 23 Dec 2023 10:00:53 -0300 Subject: [PATCH] refactor: change folder structure --- cli/assets/beep.mp3 | Bin 0 -> 6318 bytes cli/assets/test_opcode.png | Bin 0 -> 5926 bytes cli/cli.go | 22 ++++++++++++++++++++++ cli/roms/IBM.ch8 | Bin 0 -> 132 bytes cli/roms/PONG.ch8 | Bin 0 -> 246 bytes cli/roms/test/delay_timer_test.ch8 | Bin 0 -> 58 bytes cli/roms/test/random_number_test.ch8 | Bin 0 -> 34 bytes cli/roms/test/test_opcode.ch8 | Bin 0 -> 478 bytes 8 files changed, 22 insertions(+) create mode 100644 cli/assets/beep.mp3 create mode 100644 cli/assets/test_opcode.png create mode 100644 cli/cli.go create mode 100644 cli/roms/IBM.ch8 create mode 100644 cli/roms/PONG.ch8 create mode 100644 cli/roms/test/delay_timer_test.ch8 create mode 100644 cli/roms/test/random_number_test.ch8 create mode 100644 cli/roms/test/test_opcode.ch8 diff --git a/cli/assets/beep.mp3 b/cli/assets/beep.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..cd3a3ecded0158e5ececd0520a73cfe59915e2a3 GIT binary patch literal 6318 zcmeI$do)yg8wc>;Tn)x$m>Ab~BFX(8<(OdzQIphUk|r}`+#~6t%#aefC7hI+ZbT$1 zB-g^Lj>=$CoDQ9E9LjNGtX%hNdjGZFwcdZuvexU_Yp>tl&)RG4XMaC??LW3F)f@%H zwZV(#WV*DfFYUX-qr=#4hfWx=!b71SCy-M>fIsVK6oBV0H7;EN5C%j5kh2tyzBLVn zhsXeuN2Ae_0EQ25u?-45IQ{jinQ7J8xbYA9daAs=bSj>E9TjYD^AoiLwOy7+sKt|H zMcs|80UC+sg-Zg5XyJWe_KW>-Dg;V)%NwV}M(b8uJYeDgZ!HYNi9ajZ25^+6 z{ac~r1igR-8l=Cqk zfDYv_?$&L^%B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JN_r4Z z(Xg()wy_QLS+8#^-*@q}HtvO2hwZuuO#=CayefhW8DVVGpNyIHcZH7a6>h5B6@S!S z4k=HPMWbnt19{zQa9lV1CymqJZ z-O`Arb|;D5hB*~aCCrSp3-~XesbnkWyq5lyhDc}((sOeC6vaD7!|94jk}f>P8zI(l zv(^VazJEG^bFV{Sc|E839s~lgHJm#(ObdL{m3q3xrsNR`BvR12qi;+z5wAr5E62-x zV4s98C96goy6G^h-98-}RrreX*;;sT|K<0mlRn%tw3G0z(YaYH7OLT{iN5V9N&%=q z+mX4oOhD0462b7ym4!igWNU0A{%1aB=|NF|EM5RgxN~dTpC0Lxa=PX(X2alg3~8dP z=3w}QdJ-xy1=)mqy&a{G05mQZg+1GdcqD07u7QLi@BoEKlCshMWamq|;}}1T!5Qi) z>Lh5L`b<>2Ou8tEKp$UUk^I`_h{gVSo|H*GCd?r7u?|wzk5}QWYoFTGX=GZUyDLK@ zA%~q=PHp}>Gb=alb9IF5@!?C3Cie1zw<b1Vh;xgg5xXlb z?=-Ug*P%;0k~f{)g5oiG|=L6okQlQqWmCUaggsz^c$n(pYYmRiWilSxLQBp_Qbu+$^g? u%cZiCdaFV!Nn^QLR)v;JWhM1ih5k1UXz6$CKf5g}^v{m4dbj_U0QfhHsJ}P> literal 0 HcmV?d00001 diff --git a/cli/assets/test_opcode.png b/cli/assets/test_opcode.png new file mode 100644 index 0000000000000000000000000000000000000000..d4d863ca184f6e9c7d27bbd17a75b293c3243b8b GIT binary patch literal 5926 zcmbVQc~q01Oo&u6~lhL3KV6j zAR@+qEFlmGjIv}ZLW%+*fk1&GfsgZwn-W=e^O+m!jRV z!O?jCs32Gf1{)D%gbRoY3c}#7VWVfav^aoCdeEd3Q9=IEp;(L#GBhFxh8w-AV``}r z7(~$d?(lbJI;N&J78W+PjJ#t$l&C^C+LB!D`sZ zbuBHed4ZqYMpw6xFkNmPIo76fq&pzXUe(^-e*WEQlXir5LbP+{CbP%h##VL$)ktIS z?9K`6IC1#nuw9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(_9Q$u|dTL6c%N};cN`v(!H#c(W?FY43(uY7U^=?`vCtt{@OV literal 0 HcmV?d00001 diff --git a/cli/roms/PONG.ch8 b/cli/roms/PONG.ch8 new file mode 100644 index 0000000000000000000000000000000000000000..65d63106cc088da4fc0e2cfad10e01453e724620 GIT binary patch literal 246 zcmc~|%I3+j&*fS4>ejY9*YX&YuB0(%FeM~>5dFYzz#t@bT)dnk^Z%j`*9svj5*QyW ztp1n40wkFd%J`Se1!P^dXB1kL$kZSTq<4YI6JYXCg2D$0 zr7L|VK$qDWGXh=r&zLcTNl2{nzvsWq|3W7!89kXY853AONR%6_>`b|pD81|bn4CWZ%#tiBn4N=;_?pn2J~nDrx= K`~)N!-T?pvwG=%7 literal 0 HcmV?d00001 diff --git a/cli/roms/test/random_number_test.ch8 b/cli/roms/test/random_number_test.ch8 new file mode 100644 index 0000000000000000000000000000000000000000..a6225e5457a4db69208e77587f73afd102909cc9 GIT binary patch literal 34 lcmYdgV0du&|01Q&#-CDC7(QrT2`yp$2qr%P$jmckgkn@idt{U=U!$7$S`jO^N|hYBI{u zLvEBJ7rsFj@J-|)dXX2fAb|8VOudV>H0vnc)n3+BEX}S%S^y zPBf8sb5KpBZAvM?b|SYwtvFSN-Nf$VlnRYlYR8@R?q-j=3S_x7MK{?=O%i)k6%A5AWWClvaIsC#&di4 cz5iuFT33MVtpI6c