Work on interrupts
This commit is contained in:
parent
022f276a28
commit
15d9c568dc
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
#include "macros.h"
|
#include "macros.h"
|
||||||
|
|
||||||
|
cop_rti .macro
|
||||||
|
plb
|
||||||
|
rti
|
||||||
|
.endm
|
||||||
|
|
||||||
; -----------------------------------------------------------------------------
|
; -----------------------------------------------------------------------------
|
||||||
|
|
||||||
.section near
|
.section near
|
||||||
|
@ -66,11 +71,7 @@ cop_handler_native:
|
||||||
; modifying anything but the X register.
|
; modifying anything but the X register.
|
||||||
|
|
||||||
; Now, we do an indirect, indexed jump through the jump table.
|
; Now, we do an indirect, indexed jump through the jump table.
|
||||||
jsr (.kbank(cop_jump_table),x)
|
jmp (.kbank(cop_jump_table),x)
|
||||||
|
|
||||||
; And we're done.
|
|
||||||
plb
|
|
||||||
rti
|
|
||||||
|
|
||||||
cop_jump_table:
|
cop_jump_table:
|
||||||
.word .word0(cop_exit)
|
.word .word0(cop_exit)
|
||||||
|
@ -93,6 +94,6 @@ cop_get_version:
|
||||||
lda long:version_minor
|
lda long:version_minor
|
||||||
tax
|
tax
|
||||||
lda long:version_major
|
lda long:version_major
|
||||||
rts
|
cop_rti
|
||||||
|
|
||||||
; -----------------------------------------------------------------------------
|
; -----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue