aboutsummaryrefslogtreecommitdiffstats
path: root/asm/text_mode.atk16
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-11-03 01:01:14 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2023-11-03 01:01:14 +0200
commit02cbabcd735e6367b87fa4401f7a5df89813a6f7 (patch)
tree6249379470d459532b692f80f0fa7fd9173e9659 /asm/text_mode.atk16
parent721b0f823ca1ef90feb7fb2b3b9e8174c5e8cf68 (diff)
Add graphics mode selector
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