]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asrax3.s
Added mouse module from C64
[cc65] / libsrc / runtime / asrax3.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: Scale the primary register by 8
5 ;
6
7         .export         asrax3
8         .importzp       tmp1
9
10 asrax3: stx     tmp1
11         cpx     #$80            ; Put bit 7 into carry
12         ror     tmp1
13         ror     a
14         ldx     tmp1
15         cpx     #$80
16         ror     tmp1
17         ror     a
18         ldx     tmp1
19         cpx     #$80
20         ror     tmp1
21         ror     a
22         ldx     tmp1
23         rts
24