mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-26 12:03:45 +02:00
18 lines
353 B
ObjectPascal
18 lines
353 B
ObjectPascal
{$asmmode att}
|
|
|
|
procedure asmfunc(p:pointer);assembler;
|
|
asm
|
|
{
|
|
this is changed into movl %eax,(%ebx+8) which is not correct, and tp7
|
|
also doesn't allow 'mov p[bx],ax' or 'mov p+bx,ax'
|
|
|
|
Solution: for parameters and locals the index must be turned off
|
|
|
|
Don't forget to check the intel assembler also
|
|
}
|
|
movl %eax,p(%ebx)
|
|
end;
|
|
|
|
begin
|
|
end.
|