use indirect spi handler
This commit is contained in:
parent
eb02613837
commit
25d0fcfb90
8
main.s65
8
main.s65
@ -74,7 +74,6 @@ irq:
|
|||||||
bbr7 irq_via_ifr,@irq_return ; skip
|
bbr7 irq_via_ifr,@irq_return ; skip
|
||||||
bbs2 irq_via_ifr,@irq_spi_p ; check SR
|
bbs2 irq_via_ifr,@irq_spi_p ; check SR
|
||||||
bbs1 irq_via_ifr,@irq_keypad ; check CA1
|
bbs1 irq_via_ifr,@irq_keypad ; check CA1
|
||||||
|
|
||||||
; this SHOULD never be reached
|
; this SHOULD never be reached
|
||||||
jsr lcd::clear
|
jsr lcd::clear
|
||||||
Print "Unknown IRQ"
|
Print "Unknown IRQ"
|
||||||
@ -85,8 +84,11 @@ irq:
|
|||||||
rti
|
rti
|
||||||
; bra @irq_return
|
; bra @irq_return
|
||||||
@irq_keypad:
|
@irq_keypad:
|
||||||
jsr kp::read_irq
|
lda #<@irq_return
|
||||||
bra @irq_return
|
pha
|
||||||
|
lda #>@irq_return
|
||||||
|
pha
|
||||||
|
jmp (spi_p::irq_handler)
|
||||||
@irq_spi_p:
|
@irq_spi_p:
|
||||||
jsr spi_p::read
|
jsr spi_p::read
|
||||||
bra @irq_return
|
bra @irq_return
|
||||||
|
Loading…
Reference in New Issue
Block a user