From 321759f70da9369ebe57cdcce1885d2a3fb8a2b2 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Fri, 8 Dec 2023 00:14:02 +0100 Subject: [PATCH] fix kp values --- system/keypad.s65 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/system/keypad.s65 b/system/keypad.s65 index 1790933..dec4e0f 100644 --- a/system/keypad.s65 +++ b/system/keypad.s65 @@ -18,6 +18,7 @@ INCLUDE_KEYPAD = 1 .zeropage _KP_COLUMN: .res 1 ; for storing stuff +_KP_DEBUG_VAL: .res 1 ; for storing the last char DEBUG .bss ; reserve space or ringbuffer KP_BUF_SIZE = 10 @@ -90,6 +91,8 @@ RBUF_MEM_END = RBUF_MEM_START + KP_BUF_SIZE - 1 rts @kp_write: lda _KP_VALUES,x + ; TODO use ringbuffer + sta _KP_DEBUG_VAL jsr rb_keypad_write rts .endproc @@ -97,9 +100,9 @@ RBUF_MEM_END = RBUF_MEM_START + KP_BUF_SIZE - 1 .rodata _KP_VALUES: .byte "174*" - .byte "396#" .byte "2850" - .byte "ABCD" + .byte "396#" + .byte "ACBD" ; keypad conencted so that ; row 1 = PA0 ; row 2 = PA2