bug0124.pp 290 B

123456789101112
  1. {$asmmode intel}
  2. var
  3. l : longint;
  4. begin
  5. { problem here is that l is replaced by BP-offset }
  6. { relative to stack, and the parser thinks all wrong }
  7. { because of this. }
  8. asm
  9. lea eax,[eax*4+eax]
  10. mov eax,[eax*4+l]
  11. end;
  12. end.