mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-11-19 12:30:51 +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
982b1d45f6
commit
5144fcc803
@ -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