]> git.sur5r.net Git - cc65/blob - libsrc/runtime/shrax4.s
Merge pull request #740 from laubzega/master
[cc65] / libsrc / runtime / shrax4.s
1 ;
2 ; Ullrich von Bassewitz, 25.07.2001
3 ;
4 ; CC65 runtime: Scale the primary register by 16
5 ;
6
7         .export         shrax4
8         .importzp       tmp1
9
10 shrax4: stx     tmp1
11         lsr     tmp1
12         ror     a
13         lsr     tmp1
14         ror     a
15         lsr     tmp1
16         ror     a
17         lsr     tmp1
18         ror     a
19         ldx     tmp1
20         rts
21
22