From: vrokas Date: Sun, 10 Oct 2004 21:05:13 +0000 (+0000) Subject: * in genGenPointerSet forgot to use postdec1 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=203d43b0448b7f7e980494108e2d21c9c8fc1002;p=fw%2Fsdcc * in genGenPointerSet forgot to use postdec1 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3530 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/pic16/gen.c b/src/pic16/gen.c index 58d02e0a..097259d4 100644 --- a/src/pic16/gen.c +++ b/src/pic16/gen.c @@ -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);