]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asreax4.s
Made the code that logs indirect-goto referals be a little more efficient.
[cc65] / libsrc / runtime / asreax4.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         asreax4
8         .importzp       sreg, tmp1
9
10 asreax4:
11         stx     tmp1
12         ldx     sreg+1
13         ldy     #4
14 @L1:    cpx     #$80            ; Get bit 7 into carry
15         ror     sreg+1
16         ror     sreg
17         ror     tmp1
18         ror     a
19         dey
20         bne     @L1
21         ldx     tmp1
22         rts
23