mirror of
https://github.com/cc65/cc65.git
synced 2025-02-06 12:31:12 +00:00
19 lines
344 B
ArmAsm
19 lines
344 B
ArmAsm
;
|
|
; Kevin Ruland
|
|
; Ullrich von Bassewitz, 2005-03-25
|
|
;
|
|
; unsigned char kbhit (void);
|
|
;
|
|
|
|
.export _kbhit
|
|
|
|
.include "apple2.inc"
|
|
|
|
_kbhit:
|
|
lda KBD ; Reading KBD checks for keypress
|
|
rol ; if high bit is set, key was pressed
|
|
lda #$00
|
|
tax
|
|
rol
|
|
rts
|