mirror of
https://github.com/cc65/cc65.git
synced 2025-02-03 22:32:24 +00:00
Tentative solution for cgetc in Lynx
This commit is contained in:
parent
f3d898d6a3
commit
da01286037
@ -20,13 +20,13 @@
|
||||
; So the keyboard returns '1', '2', '3', 'P', 'R', 'F' or '?'.
|
||||
|
||||
_cgetc:
|
||||
lda KBSTL
|
||||
ora KBEDG
|
||||
bne @L1
|
||||
jsr _kbhit ; Check for char available
|
||||
bne @L1
|
||||
tax ; Test result
|
||||
bra _cgetc
|
||||
@L1:
|
||||
lda KBSTL
|
||||
ora KBEDG
|
||||
ldx #0
|
||||
and #1
|
||||
beq @L6
|
||||
|
Loading…
x
Reference in New Issue
Block a user