]> git.sur5r.net Git - cc65/blob - libsrc/runtime/shreax1.s
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / libsrc / runtime / shreax1.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: Scale the 32 bit primary register by 2
5 ;
6
7         .export         shreax1
8         .importzp       sreg, tmp1
9
10 shreax1:
11         stx     tmp1
12         lsr     sreg+1
13         ror     sreg
14         ror     tmp1
15         ror     a
16         ldx     tmp1
17         rts
18