From fc4a2aab96e4d0af850ecf0cefe3ae81f4463772 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Sat, 30 Sep 2017 16:17:07 +0200 Subject: [PATCH] c64input.s: fix latency when typing --- drivers/c64input.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/c64input.s b/drivers/c64input.s index 77c0e2a..83fc83b 100644 --- a/drivers/c64input.s +++ b/drivers/c64input.s @@ -29,8 +29,10 @@ get_key: sei ldy $cf ; cursor currently displayed? beq @done ; no - cli ; yes, wait longer - bne @wait_no_cursor + ldy #1 ; yes, wait longer + sty $cd ; set cursor "countdown" counter to low value, fixes typing latency + cli + bne @wait_no_cursor ; jump always @done: ldy #1 sty $cc ; cursor off