mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-23 19:29:18 +00:00
- From Lauri's ChangeLog: "Fixed a bug in FPU FTAN opcode (didn't pop the value
1.0 that x86 partial tangent FPTAN always pushes to stack for 8087/287 compatibility)."
This commit is contained in:
parent
c7d71ae1ab
commit
d21cbd327d
@ -1359,12 +1359,14 @@ static void do_ftan( float80 dest, float80 src )
|
||||
MOV EDI, [dest]
|
||||
FLD TBYTE PTR [ESI]
|
||||
FPTAN
|
||||
FSTP ST(0) ; pop 1.0 (the 8087/287 compatibility thing)
|
||||
FXAM
|
||||
FNSTSW sw
|
||||
FSTP TBYTE PTR [EDI]
|
||||
} */
|
||||
_ASM( "fldt %2\n"
|
||||
"fptan \n"
|
||||
"fstp %%st(0)\n"
|
||||
"fxam \n"
|
||||
"fnstsw %0\n"
|
||||
"fstpt %1\n"
|
||||
|
Loading…
Reference in New Issue
Block a user