summaryrefslogtreecommitdiff
path: root/testbenches/mine.z80
diff options
context:
space:
mode:
authorAstrid Smith2010-09-13 19:26:26 -0700
committerAstrid Smith2010-09-13 19:26:26 -0700
commit99e9a0b3e009a780422bee65ceb75515d2e7f431 (patch)
treede0b4a53d59f74716fd3e2def5c849f943b78c24 /testbenches/mine.z80
parentd12a27ae6259465790c4b9a4c557cdd9deb3e109 (diff)
Started out on my own test suite
Diffstat (limited to 'testbenches/mine.z80')
-rw-r--r--testbenches/mine.z8026
1 files changed, 26 insertions, 0 deletions
diff --git a/testbenches/mine.z80 b/testbenches/mine.z80
new file mode 100644
index 0000000..2499de3
--- /dev/null
+++ b/testbenches/mine.z80
@@ -0,0 +1,26 @@
+;;; -*- asm -*-
+;;;
+
+.ORG 4000h
+
+ call dec8
+ halt
+
+inc8:
+ ld bc,data8 ;01
+ ;; BC should have &data8
+ ld a,(bc) ;0a
+ inc a ;3c
+ ld (bc),a ;02
+ halt
+
+dec8:
+ ld a,0a5h ;3e
+ dec a ;3d
+ ret
+
+
+data8:
+ .db 0a5h
+data16:
+ .dw data8