1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-27 04:54:54 +00:00

Add dummy kbhit(), remove redundant documentation for cgetc().

This commit is contained in:
Stephan Mühlstrasser 2015-02-12 22:54:21 +01:00
parent 3601c3fb9b
commit 88df129215
2 changed files with 13 additions and 2 deletions

View File

@ -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
View 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