소스 검색

* fixed an OP_SUB bug in tcgz80.a_op_const_reg_internal

git-svn-id: branches/z80@44977 -
nickysn 5 년 전
부모
커밋
027217d1fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/z80/cgcpu.pas

+ 1 - 1
compiler/z80/cgcpu.pas

@@ -1096,7 +1096,7 @@ unit cgcpu;
                      tmpop:=A_DEC
                    else if (tmpop=A_NONE) and (curvalue<>0) then
                      tmpop:=A_SUB
-                   else if tmpop=A_ADD then
+                   else if tmpop=A_SUB then
                      tmpop:=A_SBC;
                    case tmpop of
                      A_NONE: