c64input.s: fix latency when typing

This commit is contained in:
Christian Groessler 2017-09-30 16:17:07 +02:00
parent 6e82e722ad
commit fc4a2aab96
1 changed files with 4 additions and 2 deletions

View File

@ -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