Browse Source

+ also support unsigned 8-bit > and <= in TZ80AddNode.second_cmp. All 8-bit unsigned comparisons now
work.

git-svn-id: branches/z80@44576 -

nickysn 5 years ago
parent
commit
5585bdb6aa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/z80/nz80add.pas

+ 3 - 0
compiler/z80/nz80add.pas

@@ -200,6 +200,9 @@ interface
 
         if opsize=OS_8 then
           begin
+            if getresflags(unsigned)=F_NotPossible then
+              swapleftright;
+
             force_reg_left_right(true,true);
 
             cg.getcpuregister(current_asmdata.CurrAsmList,NR_A);