]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asleax4.s
Code review changes and build fix.
[cc65] / libsrc / runtime / asleax4.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         asleax4, shleax4
8         .importzp       sreg, tmp1
9
10 asleax4:
11 shleax4:
12         stx     tmp1
13         ldx     #4
14 @L1:    asl     a
15         rol     tmp1
16         rol     sreg
17         rol     sreg+1
18         dex
19         bne     @L1
20         ldx     tmp1
21         rts
22