]> git.sur5r.net Git - cc65/blob - libsrc/runtime/asrax1.s
goto.c warning fix for implicit truncation
[cc65] / libsrc / runtime / asrax1.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: Scale the primary register
5 ;
6
7         .export         asrax1
8         .importzp       tmp1
9
10 asrax1: stx     tmp1
11         cpx     #$80            ; Put bit 7 into carry
12         ror     tmp1
13         ror     a
14         ldx     tmp1
15         rts
16