From: johanknol Date: Sat, 29 Sep 2001 07:54:54 +0000 (+0000) Subject: fixed bug #466029 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ff658d790c10b6f7f605f9789a51ea9c902b521f;p=fw%2Fsdcc fixed bug #466029 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1319 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/z80/gen.c b/src/z80/gen.c index c8c6df5c..474d8981 100644 --- a/src/z80/gen.c +++ b/src/z80/gen.c @@ -3399,7 +3399,8 @@ genCmp (operand * left, operand * right, else { /* Subtract through, propagating the carry */ - emit2 ("%s a,%s", offset == 0 ? "sub" : "sbc", aopGet (AOP (right), offset++, FALSE)); + emit2 ("%s a,%s", offset == 0 ? "sub" : "sbc", aopGet (AOP (right), offset, FALSE)); + offset++; } } }