mirror of
https://github.com/cc65/cc65.git
synced 2024-07-23 18:29:47 +00:00
22 lines
310 B
ArmAsm
22 lines
310 B
ArmAsm
;
|
|
; Jede, 2021-02-01
|
|
;
|
|
; int kbhit (void);
|
|
;
|
|
|
|
.export _kbhit
|
|
|
|
.include "telestrat.inc"
|
|
|
|
_kbhit:
|
|
BRK_TELEMON XRD0
|
|
bcs @no_char_action
|
|
ldx #$00
|
|
lda #$01
|
|
rts
|
|
@no_char_action:
|
|
lda #$00
|
|
tax
|
|
rts
|
|
|