summaryrefslogtreecommitdiff
path: root/testbenches/mine.z80
diff options
context:
space:
mode:
authorDuncan Smith2010-09-13 19:26:26 -0700
committerDuncan Smith2010-09-13 19:26:26 -0700
commit22a80c02484228e74421b7702fdb8c5623fbe3d3 (patch)
tree5bf75fa854f77d97aac53d8faee480acb9ca5a17 /testbenches/mine.z80
parent9f26b036aadf4fa3856586935f105868a93a189f (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