Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1138 Discussions

Confusion in Intel Software Developer's Manual regarding x87 instruction

ArsAtcs062007
Beginner
126 Views

In Intel's Manual, instruction set reference A-Z, Vol. 2A 3-375(page 493), the FSINCOS is explained to compute - in a normal circumstances - sin/cos(ST0) , put sin to ST0 and push cos, so ST0=COS ST1=SIN.

The pseudocode says the same thing and the small test that I wrote confirms it.

But there is a Table:

ArsAtcs062007_1-1763199991290.png

Which -at least as far as I undestand it- implies that after FSINCOS the COS will be in ST1 and SIN in ST0.

Ofcourse, it's probably me - the one who doesn't understand it, but I think that it would more understandable if Sine and Cosine were swapped in that table.

Could anyone please explain why does the table looks like that ?

0 Kudos
0 Replies
Reply