From 15d9c568dcdceadcaba23a603123fcf35191d8b8 Mon Sep 17 00:00:00 2001 From: Kyle Cardoza Date: Sat, 30 Mar 2024 14:29:50 -0400 Subject: [PATCH] Work on interrupts --- src/interrupts.s | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/interrupts.s b/src/interrupts.s index bf6e78d..699c33c 100644 --- a/src/interrupts.s +++ b/src/interrupts.s @@ -6,6 +6,11 @@ #include "macros.h" +cop_rti .macro + plb + rti + .endm + ; ----------------------------------------------------------------------------- .section near @@ -66,11 +71,7 @@ cop_handler_native: ; modifying anything but the X register. ; Now, we do an indirect, indexed jump through the jump table. - jsr (.kbank(cop_jump_table),x) - - ; And we're done. - plb - rti + jmp (.kbank(cop_jump_table),x) cop_jump_table: .word .word0(cop_exit) @@ -93,6 +94,6 @@ cop_get_version: lda long:version_minor tax lda long:version_major - rts + cop_rti ; -----------------------------------------------------------------------------