From 5f7c21fdac53d288a0bda015c2b6802816508331 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Fri, 18 Oct 2019 19:29:26 +0200 Subject: [PATCH] one more C128 keyboard fix --- c64/kernal/keyboard/scnkey.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c64/kernal/keyboard/scnkey.s b/c64/kernal/keyboard/scnkey.s index e7c4d736..821abfa1 100644 --- a/c64/kernal/keyboard/scnkey.s +++ b/c64/kernal/keyboard/scnkey.s @@ -58,11 +58,11 @@ SCNKEY: // First check if this is really a C128 - to avoid false positive lda #$00 -#if !CONFIG_KEYBOARD_C128 - tax -#endif sta VIC_XSCAN lda #$FF +#if !CONFIG_KEYBOARD_C128 + tax // preserve the $FF, will be needed later +#endif cmp VIC_XSCAN beq !+ // branch if C64, C128 will keep some bits cleared