aboutsummaryrefslogtreecommitdiffstats
path: root/asm/text_mode.atk16
diff options
context:
space:
mode:
Diffstat (limited to 'asm/text_mode.atk16')
-rw-r--r--asm/text_mode.atk1617
1 files changed, 17 insertions, 0 deletions
diff --git a/asm/text_mode.atk16 b/asm/text_mode.atk16
new file mode 100644
index 0000000..05b4fd3
--- /dev/null
+++ b/asm/text_mode.atk16
@@ -0,0 +1,17 @@
+@opt stack_pointer RF
+@opt csr_scratch RH
+@use ext_std:*
+
+; bootstrap code (must be called to setup mandatory data)
+; will jump to label main
+@include bootstrap
+
+@label main
+ ; set graphics mode to gr_text_mode
+ ldi vt_gr_mode_addr RA
+ ldr RA RA
+ ldi gr_text_mode RB
+ str RB RA
+
+@label loop
+ jpi loop