summaryrefslogtreecommitdiff
path: root/test/ind-addr.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ind-addr.s')
-rw-r--r--test/ind-addr.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/ind-addr.s b/test/ind-addr.s
new file mode 100644
index 0000000..0c9365b
--- /dev/null
+++ b/test/ind-addr.s
@@ -0,0 +1,27 @@
+.org $0
+reset:
+ cps
+ lda #1
+ ldb #1
+main:
+ jsr (rot)
+ jmp main
+
+rotate_left:
+ rlb
+ rts
+
+rotate_right:
+ rrb
+ rts
+
+.org $1000
+rot:
+ .qword rotate_left
+r
+.org $0
+v
+.org $1000
+v
+done
+