From 583bd4994a59add0f7d99b582cc72db96f1ac172 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Fri, 27 Sep 2019 01:09:28 -0400 Subject: try to fix graphics wip --- .../BMP Viewer (16x16 tiles) (MAME) [IQ_132].ch8 | Bin 0 -> 1056 bytes .../BMP Viewer (Google) [IQ_132].ch8 | Bin 0 -> 1056 bytes .../BMP Viewer - Flip-8 logo [Newsdee, 2006].ch8 | Bin 0 -> 1072 bytes .../BMP Viewer - Flip-8 logo [Newsdee, 2006].txt | 3 + ...BMP Viewer - Kyori (SC example) [Hap, 2005].ch8 | Bin 0 -> 1072 bytes ...BMP Viewer - Kyori (SC example) [Hap, 2005].txt | 3 + ...BMP Viewer - Let's Chip-8! [Koppepan, 2005].ch8 | Bin 0 -> 1072 bytes ...BMP Viewer - Let's Chip-8! [Koppepan, 2005].txt | 3 + .../Emutest [Hap, 2006].ch8 | Bin 0 -> 85 bytes .../Emutest [Hap, 2006].txt | 124 +++++++++++++++++++++ .../Font Test [Newsdee, 2006].ch8 | Bin 0 -> 272 bytes roms/SuperChip Test Programs/Hex Mixt.ch8 | Bin 0 -> 52 bytes roms/SuperChip Test Programs/Line Demo.ch8 | Bin 0 -> 22 bytes roms/SuperChip Test Programs/SC Test.ch8 | Bin 0 -> 672 bytes roms/SuperChip Test Programs/SC Test.txt | 61 ++++++++++ .../SCHIP Test [iq_132].ch8 | Bin 0 -> 228 bytes .../Scroll Test (modified) [Garstyciuks].ch8 | Bin 0 -> 38 bytes roms/SuperChip Test Programs/Scroll Test.ch8 | Bin 0 -> 90 bytes roms/SuperChip Test Programs/SuperChip Test.ch8 | Bin 0 -> 100 bytes roms/SuperChip Test Programs/SuperChip Test.txt | 1 + roms/SuperChip Test Programs/Test128.ch8 | Bin 0 -> 280 bytes 21 files changed, 195 insertions(+) create mode 100644 roms/SuperChip Test Programs/BMP Viewer (16x16 tiles) (MAME) [IQ_132].ch8 create mode 100644 roms/SuperChip Test Programs/BMP Viewer (Google) [IQ_132].ch8 create mode 100644 roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].ch8 create mode 100644 roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].txt create mode 100644 roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].ch8 create mode 100644 roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].txt create mode 100644 roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].ch8 create mode 100644 roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].txt create mode 100644 roms/SuperChip Test Programs/Emutest [Hap, 2006].ch8 create mode 100644 roms/SuperChip Test Programs/Emutest [Hap, 2006].txt create mode 100644 roms/SuperChip Test Programs/Font Test [Newsdee, 2006].ch8 create mode 100644 roms/SuperChip Test Programs/Hex Mixt.ch8 create mode 100644 roms/SuperChip Test Programs/Line Demo.ch8 create mode 100644 roms/SuperChip Test Programs/SC Test.ch8 create mode 100644 roms/SuperChip Test Programs/SC Test.txt create mode 100644 roms/SuperChip Test Programs/SCHIP Test [iq_132].ch8 create mode 100644 roms/SuperChip Test Programs/Scroll Test (modified) [Garstyciuks].ch8 create mode 100644 roms/SuperChip Test Programs/Scroll Test.ch8 create mode 100644 roms/SuperChip Test Programs/SuperChip Test.ch8 create mode 100644 roms/SuperChip Test Programs/SuperChip Test.txt create mode 100644 roms/SuperChip Test Programs/Test128.ch8 (limited to 'roms/SuperChip Test Programs') diff --git a/roms/SuperChip Test Programs/BMP Viewer (16x16 tiles) (MAME) [IQ_132].ch8 b/roms/SuperChip Test Programs/BMP Viewer (16x16 tiles) (MAME) [IQ_132].ch8 new file mode 100644 index 0000000..93efa5c Binary files /dev/null and b/roms/SuperChip Test Programs/BMP Viewer (16x16 tiles) (MAME) [IQ_132].ch8 differ diff --git a/roms/SuperChip Test Programs/BMP Viewer (Google) [IQ_132].ch8 b/roms/SuperChip Test Programs/BMP Viewer (Google) [IQ_132].ch8 new file mode 100644 index 0000000..bc18cfc Binary files /dev/null and b/roms/SuperChip Test Programs/BMP Viewer (Google) [IQ_132].ch8 differ diff --git a/roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].ch8 b/roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].ch8 new file mode 100644 index 0000000..5e87642 Binary files /dev/null and b/roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].ch8 differ diff --git a/roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].txt b/roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].txt new file mode 100644 index 0000000..95d1e08 --- /dev/null +++ b/roms/SuperChip Test Programs/BMP Viewer - Flip-8 logo [Newsdee, 2006].txt @@ -0,0 +1,3 @@ +BMP Viewer, 02-06-05, by hap. Image by Newsdee +works with monochrome BMPs only, of course. put the BMP data (headerless) at +offset $30. change offset $0 (200) $00ff to $1202 for Chip-8. \ No newline at end of file diff --git a/roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].ch8 b/roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].ch8 new file mode 100644 index 0000000..3da1b47 Binary files /dev/null and b/roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].ch8 differ diff --git a/roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].txt b/roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].txt new file mode 100644 index 0000000..885f511 --- /dev/null +++ b/roms/SuperChip Test Programs/BMP Viewer - Kyori (SC example) [Hap, 2005].txt @@ -0,0 +1,3 @@ +BMP Viewer, 02-06-05, by hap +works with monochrome BMPs only, of course. put the BMP data (headerless) at +offset $30. change offset $0 (200) $00ff to $1202 for Chip-8. \ No newline at end of file diff --git a/roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].ch8 b/roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].ch8 new file mode 100644 index 0000000..0e915bc Binary files /dev/null and b/roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].ch8 differ diff --git a/roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].txt b/roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].txt new file mode 100644 index 0000000..e200db9 --- /dev/null +++ b/roms/SuperChip Test Programs/BMP Viewer - Let's Chip-8! [Koppepan, 2005].txt @@ -0,0 +1,3 @@ +BMP Viewer, 02-06-05, by hap. Image by Koppepan +works with monochrome BMPs only, of course. put the BMP data (headerless) at +offset $30. change offset $0 (200) $00ff to $1202 for Chip-8. \ No newline at end of file diff --git a/roms/SuperChip Test Programs/Emutest [Hap, 2006].ch8 b/roms/SuperChip Test Programs/Emutest [Hap, 2006].ch8 new file mode 100644 index 0000000..7cb8f45 Binary files /dev/null and b/roms/SuperChip Test Programs/Emutest [Hap, 2006].ch8 differ diff --git a/roms/SuperChip Test Programs/Emutest [Hap, 2006].txt b/roms/SuperChip Test Programs/Emutest [Hap, 2006].txt new file mode 100644 index 0000000..1919f9a --- /dev/null +++ b/roms/SuperChip Test Programs/Emutest [Hap, 2006].txt @@ -0,0 +1,124 @@ +Emutest, 27-01-05, by hap + +- the rom should boot and not run random data: it is not word-aligned +- it should show a sprite (2 short lines) at the bottom left of the screen +- it should show an 8*16 sprite that looks like a vertical "HAP", and not something + garbled: 16*16 in chip8 mode=8*16 +- it should wait exactly 3 seconds before the next action, if not, your timer's messed up +- it should scroll 1/2 line down. the result should be that the bottom 2 lines + are still visible, but the 2nd one has a smaller height than the 1st one: half pixel scroll + + + +gotta type it in by hand :( + +200: 12 jump to 248 +201: 48 +202: 45 E .. header, rom not word aligned now +203: 6d m +204: 75 u +205: 54 T +206: 61 a +207: 6c l +208: 6b k +209: 60 v0=0: x +20a: 00 +20b: 61 v1=1d(29) y +20c: 1d +20d: a2 i to 2 lines sprite +20e: 45 +20f: d0 draw it + +210: 13 +211: 60 x=10 +212: 0a +213: 61 y=3 +214: 03 +215: a2 i to hap +216: 35 +217: d0 draw +218: 10 +219: 60 v0=3 +21a: 03 +21b: 61 v1=delaycheck +21c: 00 +21d: 62 v2=count to 3 +21e: 00 +21f: 63 v3=3c(60) + +220: 3c +221: 92 skip next if 2!=0 +222: 00 +223: 12 jump out loop +224: 31 +225: 72 add 1 to v2 +226: 01 +227: f3 delay=v3 +228: 15 +229: f4 v4=delay +22a: 07 +22b: 54 skip next if v4=v1 +22c: 10 +22d: 12 loop again +22e: 29 +22f: 12 big loop again + +230: 21 +231: 00 scroll 1 down +232: c1 +233: 12 infinite loop +234: 33 +235: 88 hap +236: 88 +237: f8 +238: 88 +239: 88 +23a: 20 +23b: 50 +23c: 88 +23d: f8 +23e: 88 +23f: 00 + +240: f0 +241: 88 +242: f0 +243: 80 +244: 80 +245: f0 2 lines +246: 00 +247: f0 +248: 00 cls +249: e0 +24a: 00 draw=8 +24b: fe +24c: 12 jp 209 +24d: 09 +24e: 00 +24f: 00 + +250: 00 +251: 00 +252: 45 E +253: 4f O +254: 46 F + + + + +1...1... +1...1... +11111... +1...1... +1...1... +..1..... +.1.1.... +1...1... +11111... +1...1... +........ +1111.... +1...1... +1111.... +1....... +1....... diff --git a/roms/SuperChip Test Programs/Font Test [Newsdee, 2006].ch8 b/roms/SuperChip Test Programs/Font Test [Newsdee, 2006].ch8 new file mode 100644 index 0000000..7f25aaf Binary files /dev/null and b/roms/SuperChip Test Programs/Font Test [Newsdee, 2006].ch8 differ diff --git a/roms/SuperChip Test Programs/Hex Mixt.ch8 b/roms/SuperChip Test Programs/Hex Mixt.ch8 new file mode 100644 index 0000000..5f2b7ed Binary files /dev/null and b/roms/SuperChip Test Programs/Hex Mixt.ch8 differ diff --git a/roms/SuperChip Test Programs/Line Demo.ch8 b/roms/SuperChip Test Programs/Line Demo.ch8 new file mode 100644 index 0000000..4c60e3d Binary files /dev/null and b/roms/SuperChip Test Programs/Line Demo.ch8 differ diff --git a/roms/SuperChip Test Programs/SC Test.ch8 b/roms/SuperChip Test Programs/SC Test.ch8 new file mode 100644 index 0000000..9f8fab5 Binary files /dev/null and b/roms/SuperChip Test Programs/SC Test.ch8 differ diff --git a/roms/SuperChip Test Programs/SC Test.txt b/roms/SuperChip Test Programs/SC Test.txt new file mode 100644 index 0000000..dcef0f8 --- /dev/null +++ b/roms/SuperChip Test Programs/SC Test.txt @@ -0,0 +1,61 @@ +SCTEST + +Small programm for test (S)CHIP-8 emulators. If all test passed, you see +"OK" on upper left corner, else programm print ERROR and error number. +Written by Sergey Naydenov, e-mail: tronix286@rambler.ru (c) 2010 + +Errors: + +ERROR INI + Emulator initialization failed. When program start, all registers + must be set to null. + +ERROR BCD + BCD instruction problems. + +ERROR 0 + Problems with Fx65 instruction. Can't load zeroes from memory to + registers. + +ERROR 1 + System font 8x5 not found. In memory at offset 000h - zeroes. + +ERROR 2 + Addiction without overflow (254+1). VF register need to be set 0, + but after operation he still 1 + +ERROR 3 + After operation 254+1, register v0 need set to 255, but he does't. + +ERROR 4 + Addiction with overflow (255+1). VF register must be set to 1, but + after operation he still 0 + +ERROR 5 + Wrong result after addiction operation (255+1). Must be 0. + +ERROR 6 + After substraction 1-1 register VF must be 1, but he still 0. + +ERROR 7 + Wrong result after 1-1 operation. Result must be 0. + +ERROR 8 + Substract 0-1. VF register must be 0, but he still 1 + +ERROR 9 + Wrong result after 0-1 operation. Register v0 must be 255. + +ERROR 10 + ... skip ... + ..sorry, i don't have time for writing all descriptions. Please see + source code SCTEST.C8.. + +ERROR 23 + Can not restore HP48 flags (FX75/FX85 instructions). + +ERROR 24 + Check FX1E (I = I + VX) buffer overflow. If buffer overflow, register + VF must be set to 1, otherwise 0. As a result, register VF not set to 1. + This undocumented feature of the Chip-8 and used by Spacefight 2019! + game. \ No newline at end of file diff --git a/roms/SuperChip Test Programs/SCHIP Test [iq_132].ch8 b/roms/SuperChip Test Programs/SCHIP Test [iq_132].ch8 new file mode 100644 index 0000000..e3d8200 Binary files /dev/null and b/roms/SuperChip Test Programs/SCHIP Test [iq_132].ch8 differ diff --git a/roms/SuperChip Test Programs/Scroll Test (modified) [Garstyciuks].ch8 b/roms/SuperChip Test Programs/Scroll Test (modified) [Garstyciuks].ch8 new file mode 100644 index 0000000..1aafb8b Binary files /dev/null and b/roms/SuperChip Test Programs/Scroll Test (modified) [Garstyciuks].ch8 differ diff --git a/roms/SuperChip Test Programs/Scroll Test.ch8 b/roms/SuperChip Test Programs/Scroll Test.ch8 new file mode 100644 index 0000000..fd2255b Binary files /dev/null and b/roms/SuperChip Test Programs/Scroll Test.ch8 differ diff --git a/roms/SuperChip Test Programs/SuperChip Test.ch8 b/roms/SuperChip Test Programs/SuperChip Test.ch8 new file mode 100644 index 0000000..5e552c9 Binary files /dev/null and b/roms/SuperChip Test Programs/SuperChip Test.ch8 differ diff --git a/roms/SuperChip Test Programs/SuperChip Test.txt b/roms/SuperChip Test Programs/SuperChip Test.txt new file mode 100644 index 0000000..4b53e0e --- /dev/null +++ b/roms/SuperChip Test Programs/SuperChip Test.txt @@ -0,0 +1 @@ +A little program to show some basic functions of the super-chip instructions. \ No newline at end of file diff --git a/roms/SuperChip Test Programs/Test128.ch8 b/roms/SuperChip Test Programs/Test128.ch8 new file mode 100644 index 0000000..c08fc64 Binary files /dev/null and b/roms/SuperChip Test Programs/Test128.ch8 differ -- cgit v1.2.3-101-g0448