c64input.s: fix stray cursor image in host and port entry

This introduces some latency when typing in host name and port. But
I think that's acceptable.
This commit is contained in:
Christian Groessler 2017-09-29 15:47:44 +02:00
parent 78864d2c56
commit 7145c4e8a0

View File

@ -25,8 +25,16 @@ get_key:
@loop:
jsr get_key_if_available
bcc @loop
@wait_no_cursor:
sei
ldy $cf ; cursor currently displayed?
beq @done ; no
cli ; yes, wait longer
bne @wait_no_cursor
@done:
ldy #1
sty $cc ; cursor off
cli
rts
; use C64 Kernel ROM function to read a key