kbhit added for telestrat target
This commit is contained in:
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
|
||||||
|
|
||||||
Reference in New Issue
Block a user