diff --git a/libsrc/telestrat/kbhit.s b/libsrc/telestrat/kbhit.s new file mode 100644 index 000000000..431b9a957 --- /dev/null +++ b/libsrc/telestrat/kbhit.s @@ -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 +