Explorar o código

Fix the ~ is NOR rather than NOT

Jinyang He %!s(int64=2) %!d(string=hai) anos
pai
achega
65f38d8133
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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;