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 982b1d45f6
commit 5144fcc803
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