From b74f980d2a028c6cd04e4833a4807d0646eae093 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Wed, 25 Jan 2023 11:28:02 +0100 Subject: [PATCH] demo testrom --- testroms/chip8picture.S | 91 +++++++++++++++++++++++++++++++++++++ testroms/single_letter.S | 5 ++ testroms/single_letter.ch8 | Bin 0 -> 10 bytes 3 files changed, 96 insertions(+) create mode 100644 testroms/chip8picture.S create mode 100644 testroms/single_letter.S create mode 100644 testroms/single_letter.ch8 diff --git a/testroms/chip8picture.S b/testroms/chip8picture.S new file mode 100644 index 0000000..1999934 --- /dev/null +++ b/testroms/chip8picture.S @@ -0,0 +1,91 @@ +# Decompiled with PEACH-8 Disassembler +CLS +LD I, 0x248 +LD V0, 0x00 +LD V1, 0x1e +LD V2, 0x00 + +# 0x20A BELOW +DRW V2, V0, 0x02 # top left bold line +DRW V2, V1, 0x02 # bottom left bold line +ADD V2, 0x08 + +#if V2 == 0x40 (64), skip JP +SE V2, 0x40 +JP 0x20a + +LD V0, 0x00 +LD V1, 0x3e +LD V2, 0x02 +LD I, 0x24a +DRW V0, V2, 0x0e # long left top line +DRW V1, V2, 0x0e # long right top line +ADD V2, 0x0e +DRW V0, V2, 0x0e # long left bottom line +DRW V1, V2, 0x0e # long right bottom line +LD I, 0x258 +LD V0, 0x0b +LD V1, 0x08 +DRW V0, V1, 0x0f # C +ADD V0, 0x0a +LD I, 0x267 +DRW V0, V1, 0x0f # H +ADD V0, 0x0a +LD I, 0x276 +DRW V0, V1, 0x0f # I +ADD V0, 0x03 +LD I, 0x285 +DRW V0, V1, 0x0f # P +ADD V0, 0x0a +LD I, 0x294 +DRW V0, V1, 0x0f # 8 +JP 0x246 # SELF JUMP (ENDS HERE) + +#DATA: + +FILL 0xffff +RND V0, 0xc0 +RND V0, 0xc0 +RND V0, 0xc0 +RND V0, 0xc0 +RND V0, 0xc0 +RND V0, 0xc0 +RND V0, 0xc0 +FILL 0xff80 +LD V0, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +FILL 0xff81 +OR V1, V8 +OR V1, V8 +OR V1, V8 +FILL 0xff81 +OR V1, V8 +OR V1, V8 +OR V1, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +LD V0, V8 +FILL 0x80ff +OR V1, V8 +OR V1, V8 +OR V1, V8 +FILL 0xff80 +LD V0, V8 +LD V0, V8 +LD V0, V8 +FILL 0xff81 +OR V1, V8 +OR V1, V8 +FILL 0x81ff +OR V1, V8 +OR V1, V8 +OR V1, V8 +FILL 0xffff diff --git a/testroms/single_letter.S b/testroms/single_letter.S new file mode 100644 index 0000000..9d17edd --- /dev/null +++ b/testroms/single_letter.S @@ -0,0 +1,5 @@ +CLS +LD V0, 0x1 +LD I, 0x00 +DRW V0, V0, 0x05 +JP 0x208 \ No newline at end of file diff --git a/testroms/single_letter.ch8 b/testroms/single_letter.ch8 new file mode 100644 index 0000000000000000000000000000000000000000..f0e7099f525eb057b322ad4ed9766258f7788943 GIT binary patch literal 10 RcmZR0kifWr;R34=2LKW*0?_~f literal 0 HcmV?d00001