]> git.sur5r.net Git - cc65/blob - libsrc/c64/kbhit.s
Don't hardcode the address of the SYS call for the startup code of the
[cc65] / libsrc / c64 / kbhit.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; int kbhit (void);
5 ;
6
7         .export         _kbhit
8         .import         return0, return1
9
10         .include        "c64.inc"
11
12 _kbhit:
13         lda     KEY_COUNT       ; Get number of characters
14         bne     L1
15         jmp     return0
16 L1:     jmp     return1
17
18
19
20