From 855143123347fad6a09d08f995d7a2d5c7bd84de Mon Sep 17 00:00:00 2001 From: Oliver Schmidt <ol.sc@web.de> Date: Fri, 5 Feb 2021 11:54:07 +0100 Subject: [PATCH] Optimized based on https://github.com/cc65/cc65/pull/1393. --- libsrc/telestrat/kbhit.s | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libsrc/telestrat/kbhit.s b/libsrc/telestrat/kbhit.s index bb88af4b2..54e4bf4d8 100644 --- a/libsrc/telestrat/kbhit.s +++ b/libsrc/telestrat/kbhit.s @@ -10,12 +10,8 @@ _kbhit: BRK_TELEMON XRD0 - bcs @no_char_action - ldx #$00 - lda #$01 + ldx #$00 + txa + rol + eor #$01 rts -@no_char_action: - lda #$00 - tax - rts -