aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_schasm/main.scm
diff options
context:
space:
mode:
Diffstat (limited to 'atk16_schasm/main.scm')
-rw-r--r--atk16_schasm/main.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/atk16_schasm/main.scm b/atk16_schasm/main.scm
index e6f63ca..3258a7f 100644
--- a/atk16_schasm/main.scm
+++ b/atk16_schasm/main.scm
@@ -35,7 +35,7 @@
(hlt))
;; store string data in memory
-(def-label 'data
+(def-label 'text-data
(%packed-string "hölynpöly"))
(at-addr #x50)
@@ -56,5 +56,11 @@
(%if (R1 <= (u16 #xFF))
(emit-word #xbeef))
+(comment
+ (ld R1 (u16 10))
+ (%while (R1 > (u16 0))
+ (%call println (label 'text-data))
+ (sub R1 (u16 1))))
+
;; compile to a 128KB image file
(write-image-to "out.bin")