Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2000-12

Assembly reader bug

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ingmar Tulva

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.

  {$asmmode intel}
  asm
    mov EAX,[EBX+4*EDX]
  end;

becomes (-Anasmcoff)

mov eax,[ebx+edx+4]
^
----

Ingmar Tulva,

Reply by email

Florian Klaempfl
to Ingmar Tulva
you wrote 5 lines
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.

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

Reply by email