[comp.sys.ibm.pc.hardware] floating point math in interrupt routine

probert@fires1 (09/21/90)

Does anybody have any nice floating point tricks up their sleeve.

I have an interrupt routine which does floating point work, while the main
program also does floating point.  I have put inline assembly into the
interrupt routine to save and restore the floating point chip, but some
of the math still goes awry for the main routine.

Anybody out there who can help?



--
    FORD       | Neal W. Probert   E3154 SRL    | probert@fires1.srl.ford.com
 SCIENTIFIC    | Ford Scientific Research Labs  | 313-845-8178 FAX 313-337-5581
RESEARCH LABS  | Dearborn, MI 48121-2053        |

bright@Data-IO.COM (Walter Bright) (09/22/90)

In article <25941@fmsrl7.UUCP> probert@fires1 () writes:
<Does anybody have any nice floating point tricks up their sleeve.
<I have an interrupt routine which does floating point work, while the main
<program also does floating point.  I have put inline assembly into the
<interrupt routine to save and restore the floating point chip, but some
<of the math still goes awry for the main routine.
<Anybody out there who can help?

The floating point in Zortech C/C++ is reentrant, and works fine
at interrupt level.