summaryrefslogtreecommitdiff
path: root/test/asr.s
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2019-12-11 11:28:30 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2019-12-11 11:28:30 -0500
commit9526483f93b5950ecfa81a93f30b617bec22dfe1 (patch)
tree34ee0e468f3d9ea239870967df1931cef2206dcf /test/asr.s
parent3dfde833082fc66cededd0206ae5fc76162867b6 (diff)
We can print to the Screen!!!!
I also added the ASR instruction, for doing arithmetic shifts, and have added a hello world program.
Diffstat (limited to 'test/asr.s')
-rw-r--r--test/asr.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/asr.s b/test/asr.s
new file mode 100644
index 0000000..6377875
--- /dev/null
+++ b/test/asr.s
@@ -0,0 +1,19 @@
+; Testing Signed shifts.
+;
+; Writen by mr b0nk 500 <b0nk@b0nk.xyz>
+
+reset:
+ cps
+
+start:
+ lda.q #$-FFFF
+
+signshft:
+ asr #$1
+ cmp.q #$-1
+ beq start
+ jmp signshft
+
+.org $0
+done
+