Procházet zdrojové kódy

Fix the ~ is NOR rather than NOT

Jinyang He před 2 roky
rodič
revize
65f38d8133
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      compiler/raatt.pas

+ 8 - 1
compiler/raatt.pas

@@ -828,13 +828,20 @@ unit raatt;
                  exit;
                end;
 
-             '!', '~' :
+             '!' :
                begin
                  actasmtoken:=AS_NOT;
                  c:=current_scanner.asmgetchar;
                  exit;
                end;
 
+             '~' :
+               begin
+                 actasmtoken:=AS_NOR;
+                 c:=current_scanner.asmgetchar;
+                 exit;
+               end;
+
              '@' :
                begin
                  actasmtoken:=AS_AT;