mirror of
https://github.com/cc65/cc65.git
synced 2025-02-26 07:29:25 +00:00
Add dummy kbhit(), remove redundant documentation for cgetc().
This commit is contained in:
parent
3601c3fb9b
commit
88df129215
@ -139,8 +139,8 @@ There are no loadable drivers available.
|
||||
|
||||
<sect1>conio implementation<p>
|
||||
|
||||
The conio implementation is complete except for the kbhit() function. A
|
||||
call to cgetc() always blocks until a character is entered.
|
||||
The conio implementation is complete except for a working kbhit() function.
|
||||
kbhit() currently returns true unconditionally.
|
||||
|
||||
<sect1>stdio implementation<p>
|
||||
|
||||
|
11
libsrc/osic1p/kbhit.s
Normal file
11
libsrc/osic1p/kbhit.s
Normal file
@ -0,0 +1,11 @@
|
||||
;
|
||||
; int kbhit (void);
|
||||
;
|
||||
; Currently a dummy function that returns always true
|
||||
|
||||
.export _kbhit
|
||||
|
||||
_kbhit:
|
||||
lda #$01 ; load low byte with true value
|
||||
ldx #$00 ; load high byte
|
||||
rts
|
Loading…
x
Reference in New Issue
Block a user