Parcourir la source

Fix the ~ is NOR rather than NOT

Jinyang He il y a 2 ans
Parent
commit
65f38d8133
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  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;