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