]> git.gag.com Git - fw/sdcc/commitdiff
* in genGenPointerSet forgot to use postdec1
authorvrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 10 Oct 2004 21:05:13 +0000 (21:05 +0000)
committervrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 10 Oct 2004 21:05:13 +0000 (21:05 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3530 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/pic16/gen.c

index 58d02e0a2e760418211c25ed3ccdcc764e8a3250..097259d4bc1e2cd79e447470b873c0992d487a98 100644 (file)
@@ -10927,7 +10927,7 @@ static void genGenPointerSet (operand *right,
      * by the support function this restoring the stack. The important
      * thing is that there is no need to manually restore stack pointer
      * here */
-    mov2fp(pic16_popCopyReg(&pic16_pc_gptrreg), AOP(right), 0);
+    mov2fp(pic16_popCopyReg(&pic16_pc_postdec1), AOP(right), 0);
     if(size>1)mov2fp(pic16_popCopyReg(&pic16_pc_prodh), AOP(right), 1);
     if(size>2)mov2fp(pic16_popCopyReg(&pic16_pc_tblptrl), AOP(right), 2);
     if(size>3)mov2fp(pic16_popCopyReg(&pic16_pc_tblptrh), AOP(right), 3);