comit of the fix as mentioned in bug #458311
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 4 Sep 2001 09:44:34 +0000 (09:44 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 4 Sep 2001 09:44:34 +0000 (09:44 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1223 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/mcs51/gen.c

index 253f52b9054f414151ad411270612f45111061db..ac2e391e6b35a5f6d3b4b02dc129ffbf928c71a8 100644 (file)
@@ -6792,7 +6792,7 @@ genUnpackBits (operand * result, char *rname, int ptype)
 
     case CPOINTER:
       emitcode ("clr", "a");
-      emitcode ("movc", "a,%s", "@a+dptr");
+      emitcode ("movc", "a,@a+dptr");
       break;
 
     case GPOINTER:
@@ -6845,7 +6845,7 @@ genUnpackBits (operand * result, char *rname, int ptype)
        case CPOINTER:
          emitcode ("clr", "a");
          emitcode ("inc", "dptr");
-         emitcode ("movc", "a", "@a+dptr");
+         emitcode ("movc", "a,@a+dptr");
          break;
 
        case GPOINTER: