mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
Cosmetic changes requested by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3431 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5,11 +5,12 @@
|
|||||||
; unsigned char kbhit (void);
|
; unsigned char kbhit (void);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _kbhit
|
.export _kbhit
|
||||||
|
|
||||||
.include "apple2.inc"
|
.include "apple2.inc"
|
||||||
|
|
||||||
_kbhit: lda KBD ; Reading KBD checks for keypress
|
_kbhit:
|
||||||
|
lda KBD ; Reading KBD checks for keypress
|
||||||
rol ; if high bit is set, key was pressed
|
rol ; if high bit is set, key was pressed
|
||||||
lda #$00
|
lda #$00
|
||||||
tax
|
tax
|
||||||
|
Reference in New Issue
Block a user