adapted peephole 258.x to changed gen.c (genAnd)
authorfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 30 Jan 2005 11:36:41 +0000 (11:36 +0000)
committerfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 30 Jan 2005 11:36:41 +0000 (11:36 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3662 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/mcs51/peeph.def

index a1993c8cf2324b5dad588db49e5e6fc7e89e5e8a..4b332b17bd7931988fba4604bc7907a25fe8c959 100644 (file)
@@ -3660,7 +3660,7 @@ replace {
 // helps f.e. writing data on a 3-wire (SPI) bus
 replace {
        mov     a,%1
-       mov     c,acc.7
+       rlc     a
        mov     %2,c
        mov     a,%1
        add     a,%1
@@ -3676,7 +3676,7 @@ replace {
 // out_bit=out_byte&0x01; out_byte>>=1;
 replace {
        mov     a,%1
-       mov     c,acc.0
+       rrc     a
        mov     %2,c
        mov     a,%1
        clr     c