mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +00:00
25 lines
459 B
Plaintext
25 lines
459 B
Plaintext
|
;Interrupt Vector Manipulation Routines
|
||
|
|
||
|
;Interrupt Vectors
|
||
|
NMILO EQU $FFFA ;Non-Maskable Interrupt
|
||
|
NMIHI EQU $FFFB
|
||
|
RSTLO EQU $FFFC ;Reset
|
||
|
RSTHI EQU $FFFD
|
||
|
IRQLO EQU $FFFE ;Maskable Interrupt
|
||
|
IRQHI EQU $FFFF
|
||
|
|
||
|
;Set Non-Maskable Interrupt Handler
|
||
|
SETNMI: STY NMIHI
|
||
|
STX NMILO
|
||
|
RTS
|
||
|
|
||
|
;Set Reset Handler
|
||
|
SETRST: STY RSTHI
|
||
|
STX RSTLO
|
||
|
RTS
|
||
|
|
||
|
;Set Maskable Interrupt Handler
|
||
|
SETIRQ: STY IRQHI
|
||
|
STX IRQLO
|
||
|
RTS
|