diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2023-11-03 01:01:14 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2023-11-03 01:01:14 +0200 |
| commit | 02cbabcd735e6367b87fa4401f7a5df89813a6f7 (patch) | |
| tree | 6249379470d459532b692f80f0fa7fd9173e9659 /asm/text_mode.atk16 | |
| parent | 721b0f823ca1ef90feb7fb2b3b9e8174c5e8cf68 (diff) | |
Add graphics mode selector
Diffstat (limited to 'asm/text_mode.atk16')
| -rw-r--r-- | asm/text_mode.atk16 | 17 |
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 |
