]> git.sur5r.net Git - cc65/blob - libsrc/gamate/ticktock.s
Saved 2 bytes and fixed error in case of negative result.
[cc65] / libsrc / gamate / ticktock.s
1         .interruptor    ticktock, 24
2
3         .include        "gamate.inc"
4         .include        "extzp.inc"
5
6 ticktock:
7
8         ; Increment the system tick counter.
9         inc     tickcount
10         bne     @s1
11         inc     tickcount+1
12         bne     @s1
13         inc     tickcount+2
14         bne     @s1
15         inc     tickcount+3
16 @s1:
17         rts