From cb203bf62d5b31abfd3dd68164a44cb39b4c7b71 Mon Sep 17 00:00:00 2001 From: "matthias@rpi" Date: Thu, 9 Nov 2023 12:08:09 +0100 Subject: [PATCH] fix swapped rows --- system/keypad.s65 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/keypad.s65 b/system/keypad.s65 index a87d5c5..67f0b18 100644 --- a/system/keypad.s65 +++ b/system/keypad.s65 @@ -18,7 +18,7 @@ INCLUDE_KEYPAD = 1 RBUF_MEM_START = $200 -RBUF_MEM_END = $2ff +RBUF_MEM_END = $208 .define RBUF_NAME "keypad" .include "buffer.s65" @@ -61,16 +61,15 @@ KB_VAR = $05 ; any free zp address ldx #$00 jsr @kp_read_column lda #%00001101 - ldx #$04 + ldx #$08 jsr @kp_read_column lda #%00001011 - ldx #$08 + ldx #$04 jsr @kp_read_column lda #%00000111 ldx #$0c jsr @kp_read_column stz KP_IO+IO::RB ; todo why all zero? - ; lda KP_IO+IO::RB ; read to definetly clear the interrupt flag rts @kp_read_column: sta KP_IO+IO::RB