small C128 keyboard handling optimization

This commit is contained in:
FeralChild64 committed 2019-10-16 20:24:47 +02:00
1 parent fb2e13f9a9
commit a7cb7eb52e
2 files changed
+2 -8

No files matched your search

+1 -7
View File
@@ -37,6 +37,7 @@ scnkey_matrix_128_loop_inner:
tya // now .A contains key offset within a row
clc
adc kb_matrix_row_offsets, x // now .A contains key offset from the matrix start
adc #$40 // now .A contains fully normalized offset
tay
jmp scnkey_matrix_128_loop_next
!:
@@ -52,13 +53,6 @@ scnkey_matrix_128_loop_next:
cpy #$FF
beq scnkey_128_done
// Shift the matrix code
clc
tya
adc #$40
tay
// Continue with C64 keyboard scanning
scnkey_128_done: