fixed it and saved 1 byte
git-svn-id: svn://svn.cc65.org/cc65/trunk@27 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
68cf78c01d
commit
87fa3e147f
1 changed files with 6 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
;
|
||||
; Ullrich von Bassewitz, 06.08.1998
|
||||
; Christian Groessler, 19-Feb-2000
|
||||
;
|
||||
; int kbhit (void);
|
||||
;
|
||||
|
@ -10,12 +10,8 @@
|
|||
.include "atari.inc"
|
||||
|
||||
_kbhit:
|
||||
lda CH ; Get number of characters
|
||||
cmp #$FF
|
||||
bne L1
|
||||
jmp return1
|
||||
L1: jmp return0
|
||||
|
||||
|
||||
|
||||
|
||||
ldx CH ; last pressed key
|
||||
inx ; 255 means "no key"
|
||||
bne L1
|
||||
jmp return0
|
||||
L1: jmp return1
|
||||
|
|
Loading…
Add table
Reference in a new issue