Browse Source

+ fixed 64-bit OP_NEG in a_op_reg_reg_internal

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

+ 2 - 2
compiler/z80/cgcpu.pas

@@ -718,7 +718,7 @@ unit cgcpu;
                        a_load_reg_reg(list,OS_8,OS_8,NR_A,tmpreg2);
                        if i<>tcgsize2size[size] then
                          begin
-                           if i=5 then
+                           if i=4 then
                              begin
                                tmpreg:=srchi;
                                tmpreg2:=dsthi;
@@ -744,7 +744,7 @@ unit cgcpu;
                        a_load_reg_reg(list,OS_8,OS_8,NR_A,tmpreg2);
                        if i<>tcgsize2size[size] then
                          begin
-                           if i=5 then
+                           if i=4 then
                              begin
                                tmpreg2:=dsthi;
                              end