]> git.sur5r.net Git - cc65/blob - libsrc/runtime/incaxy.s
rearranged order of new optimizations to better handle -Oi flag
[cc65] / libsrc / runtime / incaxy.s
1 ;
2 ; Ullrich von Bassewitz, 05.08.1998
3 ;
4 ; CC65 runtime: Increment ax by value in y
5 ;
6
7         .export         incaxy, incax4
8         .importzp       tmp1
9         .macpack        generic
10
11 incax4: ldy     #4
12 incaxy: sty     tmp1
13         add     tmp1
14         bcc     @L9
15         inx
16 @L9:    rts
17