瀏覽代碼

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 年之前
父節點
當前提交
daefb42925
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;