[fpc-pascal] Inline assembly using absolute dword ptr
OBones
obones at free.fr
Fri Apr 20 17:50:45 CEST 2012
OBones wrote:
> Jonas Maebe wrote:
>> {$IFDEF WIN64}
>> push rcx
>> mov rcx,gs:[abs qword ptr $30]
>> And this:
>> mov rcx,qword ptr gs:[$30]
>
> Thanks, but does this guarantee absolute indexing?
> I'm asking because the abs keyword is required when using the same
> code under Delphi XE2. If I don't use it, that instruction triggers an
> access violation.
Well, I managed to get my hands on my test project here, and it does work.
So there is a difference with Delphi's assembler where it defaults to
relative indexing while FPC defaults to absolute in that context.
Thanks for the help
More information about the fpc-pascal
mailing list