Explorar el Código

* 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 -

nickysn hace 7 años
padre
commit
1cf1ab8ab9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      compiler/x86/rax86int.pas

+ 2 - 2
compiler/x86/rax86int.pas

@@ -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 *