]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asleax1.s
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / libsrc / runtime / asleax1.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         asleax1, shleax1
8         .importzp       sreg, tmp1
9
10 asleax1:
11 shleax1:
12         stx     tmp1
13         asl     a
14         rol     tmp1
15         rol     sreg
16         rol     sreg+1
17         ldx     tmp1
18         rts
19