]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asreax3.s
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / libsrc / runtime / asreax3.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: Scale the 32 bit primary register by 8
5 ;
6
7         .export         asreax3
8         .importzp       sreg, tmp1
9
10 asreax3:
11         stx     tmp1
12         ldx     sreg+1
13         cpx     #$80            ; Get bit 7 into carry
14         ror     sreg+1
15         ror     sreg
16         ror     tmp1
17         ror     a
18         ldx     sreg+1
19         cpx     #$80            ; Get bit 7 into carry
20         ror     sreg+1
21         ror     sreg
22         ror     tmp1
23         ror     a
24         ldx     sreg+1
25         cpx     #$80            ; Get bit 7 into carry
26         ror     sreg+1
27         ror     sreg
28         ror     tmp1
29         ror     a
30         ldx     tmp1
31         rts
32