]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asreax1.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / runtime / asreax1.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: Scale the primary register
5 ;
6
7         .export         asreax1
8         .importzp       sreg, tmp1
9
10 asreax1:
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     tmp1
19         rts
20