Browse Source

* fixed 64-bit OP_NOT

git-svn-id: branches/z80@45034 -
nickysn 5 years ago
parent
commit
992602afcb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/z80/cgcpu.pas

+ 2 - 2
compiler/z80/cgcpu.pas

@@ -821,11 +821,11 @@ unit cgcpu;
                getcpuregister(list,NR_A);
                for i:=1 to tcgsize2size[size] do
                  begin
+                   if i<>1 then
+                     NextSrcDst;
                    a_load_reg_reg(list,OS_8,OS_8,src,NR_A);
                    list.concat(taicpu.op_none(A_CPL));
                    a_load_reg_reg(list,OS_8,OS_8,NR_A,dst);
-                   if i<>tcgsize2size[size] then
-                     NextSrcDst;
                  end;
                ungetcpuregister(list,NR_A);
              end;