瀏覽代碼

+ TZ80AddNode.NoEqual

git-svn-id: branches/z80@44731 -
nickysn 5 年之前
父節點
當前提交
962e339ec4
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      compiler/z80/nz80add.pas

+ 13 - 0
compiler/z80/nz80add.pas

@@ -34,6 +34,7 @@ interface
 
        TZ80AddNode = class(tcgaddnode)
        private
+         function NoEqual(anodetype:tnodetype):tnodetype;
          function  GetResFlags(unsigned:Boolean;anodetype:tnodetype):TResFlags;
        protected
          function pass_1 : tnode;override;
@@ -62,6 +63,18 @@ interface
                                TZ80AddNode
 *****************************************************************************}
 
+
+    function TZ80AddNode.NoEqual(anodetype: tnodetype): tnodetype;
+      begin
+        if anodetype=lten then
+          result:=ltn
+        else if anodetype=gten then
+          result:=gtn
+        else
+          result:=anodetype;
+      end;
+
+
     function TZ80AddNode.GetResFlags(unsigned: Boolean; anodetype: tnodetype): TResFlags;
       begin
         case anodetype of