summaryrefslogtreecommitdiff
path: root/rom/test00.asm
diff options
context:
space:
mode:
authorDylan Muller <md.node.0@gmail.com>2021-02-25 15:19:09 +0200
committerDylan Muller <dylan.muller@corigine.com>2023-09-03 22:44:04 +0200
commit6c912dd0a750f897f6271ccd65a26f6f87996c03 (patch)
treef511088c4435daa546c26e7f008370fd9c481d40 /rom/test00.asm
downloadz80emu-6c912dd0a750f897f6271ccd65a26f6f87996c03.tar.gz
z80emu-6c912dd0a750f897f6271ccd65a26f6f87996c03.zip
z80emu: core: Initial commit
Initial commit of z80 emulator.
Diffstat (limited to 'rom/test00.asm')
-rw-r--r--rom/test00.asm29
1 files changed, 29 insertions, 0 deletions
diff --git a/rom/test00.asm b/rom/test00.asm
new file mode 100644
index 0000000..d96a4e8
--- /dev/null
+++ b/rom/test00.asm
@@ -0,0 +1,29 @@
+NOP
+LD HL, 0xEEEE
+LD A, 0xDE
+LD BC, 0xFFEE
+LD BC, test
+LD (BC), A
+LD BC, 0xFFFE
+INC BC
+INC BC
+LD B, 1
+DEC B
+DEC B
+RLCA
+RLCA
+RLCA
+ADD HL, BC
+LD BC, test2
+LD A, (BC)
+DEC BC
+DEC BC
+LD C, 0xFE
+INC C
+INC C
+
+test:
+db 0x00
+test2:
+db 0x01
+