]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asrax2.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / runtime / asrax2.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: Scale the primary register by 4
5 ;
6
7         .export         asrax2
8         .importzp       tmp1
9
10 asrax2: stx     tmp1
11         cpx     #$80            ; Put bit 7 into carry
12         ror     tmp1
13         ror     a
14         cpx     #$80
15         ror     tmp1
16         ror     a
17         ldx     tmp1
18         rts
19