From 25d0fcfb9016f60523f89c2d2dad4a39df60088c Mon Sep 17 00:00:00 2001 From: "Matthias@Dell" Date: Sat, 23 Dec 2023 14:19:15 +0100 Subject: [PATCH] use indirect spi handler --- main.s65 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.s65 b/main.s65 index 872ca6d..ff670cd 100644 --- a/main.s65 +++ b/main.s65 @@ -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