diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-04-13 17:05:21 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-04-13 17:05:21 +0300 |
| commit | 46459fc1b753abc83c355440a014c696c0dacd3a (patch) | |
| tree | be091a483d630a1b5459cf3176712f26b5dcae4e /resources/asm | |
| parent | 374feaf304df4fababf82af72776e8e98df00be8 (diff) | |
Add override_mode to allow user to write own ISRs to vector table
Diffstat (limited to 'resources/asm')
| -rw-r--r-- | resources/asm/text_mode.atk16 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/asm/text_mode.atk16 b/resources/asm/text_mode.atk16 index f20eac9..3fc40d2 100644 --- a/resources/asm/text_mode.atk16 +++ b/resources/asm/text_mode.atk16 @@ -1,11 +1,6 @@ -@opt stack_pointer RG -@opt csr_scratch RH -@use ext_std:* @use ext_string_io:* -; bootstrap code (must be called to set up mandatory data) -; will jump to label main -@include bootstrap +@include %bootstrap @label main cursor_to_line RC 1 @@ -21,7 +16,7 @@ @label loop jpi loop -@label keyboard_isr +@label my_keyboard_isr stack_stash RA RB RD ldi vt_kb_pp_addr RA ; RA := Keyboard peripheral address pointer ldr RA RA ; RA := Keyboard peripheral address deref @@ -56,3 +51,8 @@ @label keyboard_isr_end stack_restore RA RB RD rti + +@address vt_ISR0 +@begin_override + my_keyboard_isr +@end_override |
