* consume the register in the reference before the check for invalid reference

syntax in the x86 intel syntax asm reader; this is preparation for support of
  segment overrides inside the reference expression (i.e. [es:bx] instead of
  es:[bx])

git-svn-id: trunk@38363 -
This commit is contained in:
nickysn 2018-02-27 16:35:55 +00:00
parent 72bbfe34e9
commit 1cf1ab8ab9

View File

@ -1606,11 +1606,11 @@ Unit Rax86int;
AS_REGISTER :
begin
hreg:=actasmregister;
Consume(AS_REGISTER);
if not((GotPlus and (not Negative)) or
GotStar) then
Message(asmr_e_invalid_reference_syntax);
hreg:=actasmregister;
Consume(AS_REGISTER);
{ this register will be the index:
1. just read a *
2. next token is a *