]> git.sur5r.net Git - cc65/blob - libsrc/atari/kbhit.s
Don't add a mode when opening files for reading
[cc65] / libsrc / atari / kbhit.s
1 ;
2 ; Christian Groessler, 19-Feb-2000
3 ;
4 ; int kbhit (void);
5 ;
6
7         .export         _kbhit
8         .import         return0, return1
9
10         .include        "atari.inc"
11
12 _kbhit:
13         ldx     CH              ; last pressed key
14         inx                     ; 255 means "no key"
15         bne     L1
16         jmp     return0
17 L1:     jmp     return1