* src/mcs51/peeph.def: fixed bug #880768
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 20 Jan 2004 21:15:17 +0000 (21:15 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 20 Jan 2004 21:15:17 +0000 (21:15 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3147 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/mcs51/peeph.def

index 158968351045be29798a955c75e0e2a59eaef1bc..bb749a95be515be8f1ff93de1ffa8b8e83dcb706 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@
        code / RAM are in the same page / bank. This means the linker can
        safely allocate code/RAM of separate ASM files to different pages/banks.
        * doc/sdccman.lyx: added Slade's tips
+       * src/mcs51/peeph.def: fixed bug #880768
 
 2004-01-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
 
index 9e09697e63d9cd979ff4992cbddaa7bc01293746..083d8fe5c3cb05edf935bef5d10543dbd307dc22 100644 (file)
@@ -1172,7 +1172,7 @@ replace {
         movc    a,@a+dptr
         mov     %4,a
         inc     dptr
-        clr     a       
+        clr     a
 } by {
         ;       Peephole 186.a  optimized movc sequence
         mov     dptr,#%1
@@ -1180,11 +1180,12 @@ replace {
         movc    a,@a+dptr
         mov     %2,a
         mov     acc,b
-        inc     dptr    
+        inc     dptr
         movc    a,@a+dptr
         mov     %3,a
         mov     acc,b
         inc     dptr
+        movc    a,@a+dptr
         mov     %4,a
         mov     acc,b
         inc     dptr