From 9526483f93b5950ecfa81a93f30b617bec22dfe1 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 11 Dec 2019 11:28:30 -0500 Subject: We can print to the Screen!!!! I also added the ASR instruction, for doing arithmetic shifts, and have added a hello world program. --- test/asr.s | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/asr.s (limited to 'test/asr.s') 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 + +reset: + cps + +start: + lda.q #$-FFFF + +signshft: + asr #$1 + cmp.q #$-1 + beq start + jmp signshft + +.org $0 +done + -- cgit v1.2.3-13-gbd6f