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