use indirect spi handler

This commit is contained in:
Matthias@Dell 2023-12-23 14:19:15 +01:00
parent eb02613837
commit 25d0fcfb90

View File

@ -74,7 +74,6 @@ irq:
bbr7 irq_via_ifr,@irq_return ; skip
bbs2 irq_via_ifr,@irq_spi_p ; check SR
bbs1 irq_via_ifr,@irq_keypad ; check CA1
; this SHOULD never be reached
jsr lcd::clear
Print "Unknown IRQ"
@ -85,8 +84,11 @@ irq:
rti
; bra @irq_return
@irq_keypad:
jsr kp::read_irq
bra @irq_return
lda #<@irq_return
pha
lda #>@irq_return
pha
jmp (spi_p::irq_handler)
@irq_spi_p:
jsr spi_p::read
bra @irq_return