aboutsummaryrefslogtreecommitdiff
path: root/print.s
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@gmail.com>2022-08-16 17:44:52 -0500
committerJacques Comeaux <jacquesrcomeaux@gmail.com>2022-08-16 17:44:52 -0500
commitac8d628827aa1cdf746fce8b4cdce140558e0f89 (patch)
tree8bc9bb2d42e6d255da280656b5c0b6991cc9b0b1 /print.s
Humble beginnings
Diffstat (limited to 'print.s')
-rw-r--r--print.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/print.s b/print.s
new file mode 100644
index 0000000..f84ca70
--- /dev/null
+++ b/print.s
@@ -0,0 +1,11 @@
+ MOV R1, -(SP)
+ BR 20$
+10$:
+ TSTB @#177564
+ BEQ 10$
+ MOVB R1, @#177566
+20$:
+ MOVB (R0)+, R1
+ BNE 10$
+ MOV (SP)+, R1
+ RTS PC