mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-11-16 09:06:57 +00:00
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:
parent
48efd846f5
commit
23381c5f0a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user