mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-08-07 22:25:20 +00:00
Merge pull request #4 from groessler/something_to_pull
c64: fix latency
This commit is contained in:
@@ -25,8 +25,18 @@ get_key:
|
|||||||
@loop:
|
@loop:
|
||||||
jsr get_key_if_available
|
jsr get_key_if_available
|
||||||
bcc @loop
|
bcc @loop
|
||||||
|
@wait_no_cursor:
|
||||||
|
sei
|
||||||
|
ldy $cf ; cursor currently displayed?
|
||||||
|
beq @done ; no
|
||||||
|
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
|
ldy #1
|
||||||
sty $cc ; cursor off
|
sty $cc ; cursor off
|
||||||
|
cli
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; use C64 Kernel ROM function to read a key
|
; use C64 Kernel ROM function to read a key
|
||||||
|
Reference in New Issue
Block a user