* src/z80/gen.c (genXor): Fixed bug #805445
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 13 Sep 2003 02:14:21 +0000 (02:14 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 13 Sep 2003 02:14:21 +0000 (02:14 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2886 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/z80/gen.c

index 816ae1d4366793b6863a156da8b613729ae35fa3..5ce68d88df1e404aa2a99d56253474dc31594b82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-13  Erik Petrich <epetrich@ivorytower.norman.ok.us>
+
+       * src/z80/gen.c (genXor): Fixed bug #805445
+
 2003-09-12  Erik Petrich <epetrich@ivorytower.norman.ok.us>
 
        Fixed bug #621531 (const & volatile confusion in the type chain).
index a91e1a1565e427c35be7202cd12a922c98bbbad5..0ab78841d45dacc20572a89109cdaaeb06e1490a 100644 (file)
@@ -5202,7 +5202,7 @@ genXor (iCode * ic, iCode * ifx)
                  _moveA (aopGet (AOP (right), offset, FALSE));
                  emit2 ("xor a,%s",
                            aopGet (AOP (left), offset, FALSE));
-                 aopPut (AOP (result), "a", 0);
+                 aopPut (AOP (result), "a", offset);
                }
            }
        }