Have get_key display a cursor.

On the Apple II this is already the case. The ATARI would need to be checked.
This commit is contained in:
Oliver Schmidt 2017-05-16 23:44:04 +02:00
parent 48efd846f5
commit 23381c5f0a
2 changed files with 8 additions and 0 deletions

View File

@ -12,8 +12,12 @@
; inputs: none
; outputs: A contains ASCII value of key just pressed
get_key:
ldy #0
sty $cc ; cursor on
jsr get_key_if_available
beq get_key
ldy #1
sty $cc ; cursor off
rts
; use C64 Kernel ROM function to read a key

View File

@ -12,8 +12,12 @@
; inputs: none
; outputs: A contains ASCII value of key just pressed
get_key:
ldy #0
sty $cc ; cursor on
jsr get_key_if_available
beq get_key
ldy #1
sty $cc ; cursor off
rts
; use VIC 20 Kernel ROM function to read a key