mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
kbhit added for telestrat target
This commit is contained in:
parent
6c59a6254f
commit
f622783ae1
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…
x
Reference in New Issue
Block a user