Work on interrupts

This commit is contained in:
Kyle Cardoza 2024-03-30 14:29:50 -04:00
parent 022f276a28
commit 15d9c568dc
1 changed files with 7 additions and 6 deletions

View File

@ -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
; -----------------------------------------------------------------------------