Add dummy kbhit(), remove redundant documentation for cgetc().
This commit is contained in:
@@ -139,8 +139,8 @@ There are no loadable drivers available.
|
|||||||
|
|
||||||
<sect1>conio implementation<p>
|
<sect1>conio implementation<p>
|
||||||
|
|
||||||
The conio implementation is complete except for the kbhit() function. A
|
The conio implementation is complete except for a working kbhit() function.
|
||||||
call to cgetc() always blocks until a character is entered.
|
kbhit() currently returns true unconditionally.
|
||||||
|
|
||||||
<sect1>stdio implementation<p>
|
<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
|
||||||
Reference in New Issue
Block a user