From ff658d790c10b6f7f605f9789a51ea9c902b521f Mon Sep 17 00:00:00 2001 From: johanknol Date: Sat, 29 Sep 2001 07:54:54 +0000 Subject: [PATCH] fixed bug #466029 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1319 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/z80/gen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; } } } -- 2.30.2