On Wed, May 4, 2016 at 6:14 AM, Pierre Free Pascal
wrote:
> I think the correct solution for you is to use explicit size information:
>
>
>
> FSTP SINGLE PTR [EDX]
>
> FSTP SINGLE PTR [EAX]
>
Indeed that worked as expected. Thank you.
> but
>
> FSTP [s]
>
> and
>
> FSTP [c]
>
It still r
ntsev
*Envoyé :* mercredi 4 mai 2016 02:28
*À :* FPC-Pascal users discussions
*Objet :* [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)
Hello,
I'm dealing with the following code (from ZenGL library), targeting OSX
---
{$mode delphi}
procedure m_Sin
...@lists.freepascal.org] De la part de Dmitry
Boyarintsev
Envoyé : mercredi 4 mai 2016 02:28
À : FPC-Pascal users discussions
Objet : [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)
Hello,
I'm dealing with the following code (from ZenGL library), targeting OSX
---
{
Hello,
I'm dealing with the following code (from ZenGL library), targeting OSX
---
{$mode delphi}
procedure m_SinCos( Angle : Single; out s, c : Single ); assembler;
asm
FLD Angle
FSINCOS
FSTP [EDX]
FSTP [EAX]
end;
var
s,c: single;
begin
m_SinCos(0,s,c);
end.