How to clear stack in masm32 coprocessor (FPU)?

Doing some operations in masm32 FPU. But I'm not able to clear the stack of FPU e.g. ST(0)-ST(7) afterwards. Is there any instruction for stack clearing. Can you suggest anything?

P.S. Suppose to clear stack for further calculation.

Answers


You can use FINIT which initializes the FPU and tags the data registers ST(0)-ST(7) as empty (it does not clear their contents though)


Need Your Help

How to make app rotate only when playing videos?

ios iphone xcode video orientation

Im trying to the set the orientation of my app so that it rotates when it is playing a video. Changing the "Supported Interface Orientations" in info.plist changes the orientation for the whole app...

twitter/social data mining - Ruby or Django?

python ruby-on-rails ruby django

I am a decent c/c++ programmer, but don't know much about web dev. I am interested in twitter/social data mining. So which is a better tool - RoR or Django? I am on level zero in both ruby and pyth...