From 46459fc1b753abc83c355440a014c696c0dacd3a Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 13 Apr 2024 17:05:21 +0300 Subject: Add override_mode to allow user to write own ISRs to vector table --- resources/asm/text_mode.atk16 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'resources/asm/text_mode.atk16') 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 -- cgit v1.3