[fpc-devel]Assembly reader bug

Florian Klaempfl Florian.Klaempfl at gmx.de
Thu Dec 7 23:23:19 CET 2000


At 19:04 07.12.2000, you wrote:

>Hi,
>
>a nice bug of assembly reader (ver. 1.1, 03/12/2000 but it also appears
>in official 1.0.2): _scale_ in memory references is treated as
>_displacement_, e. g.

That's a bug, indeed.

Please use

mov EAX,[EBX+EDX*4]

which works good as workaround.

>   {$asmmode intel}
>   asm
>     mov EAX,[EBX+4*EDX]
>   end;
>
>becomes (-Anasmcoff)
>
>   mov eax,[ebx+edx+4]
>                   ^







More information about the fpc-devel mailing list