From Newsgroup: alt.lang.asm
As my FPU doesn't throw an exception (and I do not need it to), how
do I check for the just-occurred loss-of-precision or overflow ?
I just found what the answer.
Although the fistp, fstp instructions mentioned throwing exceptions, I could not find the mentioned flags anywhere.
That is, until I, while ddg-ing, stumbled over a webpage showing the
bit-flags in the status word. Taking a hint from the used captions name I found the same table in my "The IA-32 Intel Architecture Software
Developer's Manual, Volume 1 - Basic Architecture" documentation.
Odd though, when testing what exeptions a way-too-big float would cause when trying to store it into a dword I got an "Invalid Operation", not an "Overflow" exception.
Regards,
Rudy Wieser
--- Synchronet 3.21d-Linux NewsLink 1.2