Browse Source

* also use the unsigned 8-bit comparison code for 8-bit signed equal/unequal comparisons

git-svn-id: branches/z80@44582 -
nickysn 5 years ago
parent
commit
8a1be73ce0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/z80/nz80add.pas

+ 1 - 1
compiler/z80/nz80add.pas

@@ -198,7 +198,7 @@ interface
 
 
         pass_left_right;
         pass_left_right;
 
 
-        if opsize=OS_8 then
+        if (opsize=OS_8) or ((opsize=OS_S8) and (NodeType in [equaln,unequaln])) then
           begin
           begin
             if getresflags(unsigned)=F_NotPossible then
             if getresflags(unsigned)=F_NotPossible then
               swapleftright;
               swapleftright;