Work on interrupts
This commit is contained in:
parent
022f276a28
commit
15d9c568dc
|
@ -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
|
||||
|
||||
; -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue