1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00
cc65/libsrc/apple2/kbhit.s
cuz 069f0a7015 Cosmetic changes requested by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3431 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-30 18:17:57 +00:00

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