[fpc-pascal] Inline ASM code
LacaK
lacak at zoznam.sk
Thu Aug 24 08:31:43 CEST 2017
Hi *,
I need store result of floating point calculation (in my example
arctan()) in memory pointed by some variable. See this code:
var a: single; pa: PSingle;
asm
fild dy
fild dx
fpatan
fstp a
fwait
end;
pa^ := a;
It works, but is there any way how to store result directly to "pa^" in
assembler ?
I have tried:
...
fpatan
fstp pa^ ... fstp (pa) ... but this does not compile ... I need
store to memory location pointed by pa "variable"
fwait
end;
Thanks
-Laco.
More information about the fpc-pascal
mailing list