Przeglądaj źródła

m68k: don't find helper 'opcodes' as real opcodes... (i guess is the right solution for the problem which r22796 originally aimed to fix)

git-svn-id: trunk@27577 -
Károly Balogh 11 lat temu
rodzic
commit
daefb42925
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      compiler/m68k/ra68kmot.pas

+ 4 - 1
compiler/m68k/ra68kmot.pas

@@ -172,7 +172,10 @@ const
 
         { Search opcodes }
         actopcode:=tasmop(PtrInt(iasmops.Find(hs)));
-        if actopcode<>A_NONE then
+        { Also filter the helper opcodes, they can't be valid
+          while reading an assembly source }
+        if not (actopcode in
+           [A_NONE, A_LABEL, A_DBXX, A_SXX, A_BXX, A_FBXX]) then
           begin
             actasmtoken:=AS_OPCODE;
             result:=TRUE;