Re: [fpc-pascal] ASM code conversion from Delphi

2009-04-29 Thread m2
Jonas Maebe a écrit : On 29 Apr 2009, at 14:23, Roland Turcan wrote: Delphi: mov DWord ptr TCPUIDData (edi).r_eax,eax By using this: mov DWord ptr TCPUIDData ([edi]).r_eax,eax or this mov [edi+TCPUIDData.r_eax], eax that also works with both Delphi and FPC. mm http://ww

Re: [fpc-pascal] ASM code conversion from Delphi

2009-04-29 Thread Jonas Maebe
On 29 Apr 2009, at 14:23, Roland Turcan wrote: Delphi: mov DWord ptr TCPUIDData (edi).r_eax,eax By using this: mov DWord ptr TCPUIDData ([edi]).r_eax,eax As far as I can tell from the manuals posted at http://docs.embarcadero.com/products/rad_studio/ , the fact that Delphi accepts yo

[fpc-pascal] ASM code conversion from Delphi

2009-04-29 Thread Roland Turcan
Hello all, How can I write as ASM this assignment which is valid code for Delphi: mov DWord ptr TCPUIDData (edi).r_eax,eax where TCPUIDData is declared as: TYPE TCPUIDData =PACKED RECORD r_eax :CARDINAL; r_ebx