Browse Source

Fix the ~ is NOR rather than NOT

Jinyang He 2 years ago
parent
commit
2d680afab7
1 changed files with 8 additions and 1 deletions
  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;