Browse Source

* x86 intel syntax inline asm: allow a segment override (segcs,segds,seges,etc.)
to be followed by an instruction on the same line as the override

git-svn-id: trunk@28066 -

nickysn 11 years ago
parent
commit
9b560ffd64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/x86/rax86int.pas

+ 2 - 2
compiler/x86/rax86int.pas

@@ -349,8 +349,8 @@ Unit Rax86int;
                     c:=current_scanner.asmgetchar;
                   end;
                  uppervar(actasmpattern);
-                 { after prefix we allow also a new opcode }
-                 If is_prefix(actopcode) and is_asmopcode(actasmpattern) then
+                 { after prefix (or segment override) we allow also a new opcode }
+                 If (is_prefix(actopcode) or is_override(actopcode)) and is_asmopcode(actasmpattern) then
                   Begin
                     { if we are not in a constant }
                     { expression than this is an  }