Fixed bitfield initialization in code space
[fw/sdcc] / src / mcs51 / gen.c
index f4740450e07e346328eae623d93e6bc5b07c8e86..ac7e903300355ca6bb1f8a98ce07d90d47057c3e 100644 (file)
@@ -6630,7 +6630,7 @@ genUnpackBits (operand * result, char *rname, int ptype)
 
     case CPOINTER:
       emitcode ("clr", "a");
-      emitcode ("movc", "a", "@a+dptr");
+      emitcode ("movc", "a,%s", "@a+dptr");
       break;
 
     case GPOINTER: