]> git.sur5r.net Git - cc65/blob - libsrc/runtime/shreax4.s
Made the code that logs indirect-goto referals be a little more efficient.
[cc65] / libsrc / runtime / shreax4.s
1 ;
2 ; Ullrich von Bassewitz, 25.07.2001
3 ;
4 ; CC65 runtime: Scale the 32 bit primary register by 16
5 ;
6
7         .export         shreax4
8         .importzp       sreg, tmp1
9
10 shreax4:
11         stx     tmp1
12         ldx     #4
13 @L1:    lsr     sreg+1
14         ror     sreg
15         ror     tmp1
16         ror     a
17         dex
18         bne     @L1
19         ldx     tmp1
20         rts
21