www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/29/10:17:29

Date: Tue, 29 Aug 95 10:06:49 EDT
From: chayden AT mirage DOT cspi DOT com (Chris Hayden)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re:Q: Detecting presence of math coproc.

> Is there some way to gracefully detect the presence of a maths co-pro, or
> emulator without generating an exception if one isn't available. I'd like
> to have a pre-check in my program so that if there is no maths support a
> "friendly" message pops up instead of the program hanging.

Offhand, I know that there is an interrupt associated with the coprocessor -
I think it is 13.  I do not know how you would go about detecting the 
coprocessor, but I am certain that I have documentation on it.  You should
be able to find out how to in any creditable assember book.

-Chris Hayden, chayden AT cspi DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019