From: johanknol Date: Tue, 4 Sep 2001 09:44:34 +0000 (+0000) Subject: comit of the fix as mentioned in bug #458311 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c7dfe1a5cd275f3da65ed8c24da944a1500da33a;p=fw%2Fsdcc comit of the fix as mentioned in bug #458311 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1223 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 253f52b9..ac2e391e 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -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: