kbhit added for telestrat target
This commit is contained in:
parent
6c59a6254f
commit
f622783ae1
1 changed files with 19 additions and 0 deletions
19
libsrc/telestrat/kbhit.s
Normal file
19
libsrc/telestrat/kbhit.s
Normal file
|
@ -0,0 +1,19 @@
|
|||
;
|
||||
; Jede, 2021-02-01
|
||||
;
|
||||
; int kbhit (void);
|
||||
;
|
||||
|
||||
.export _kbhit
|
||||
|
||||
.include "telestrat.inc"
|
||||
|
||||
_kbhit:
|
||||
BRK_TELEMON XRD0
|
||||
bcs @no_char_action
|
||||
lda #$01
|
||||
rts
|
||||
@no_char_action:
|
||||
lda #$00
|
||||
rts
|
||||
|
Loading…
Add table
Reference in a new issue