Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!mordor!lll-lcc!pyramid!voder!apple!huxham From: huxham@apple.UUCP Newsgroups: comp.sys.mac Subject: Re: 68881 Installed? Message-ID: <730@apple.UUCP> Date: Thu, 7-May-87 14:51:40 EDT Article-I.D.: apple.730 Posted: Thu May 7 14:51:40 1987 Date-Received: Sat, 9-May-87 05:08:07 EDT References: Reply-To: huxham@apple.UUCP (Fred Huxham) Organization: Apple Computer Inc., Cupertino, USA Lines: 27 In article rs4u#@ANDREW.CMU.EDU (Richard Siegel) writes: > >How can a program determine whether a math coprocessor is installed? >I know that there's a lowmemory global, but CPUFlags only tells >what kind of main processor is in, and not whether there's a 68881. Is >there any way to tell, besides having the program crash with an F-Line exception? > In System 4.1 we've added a new function, SysEnvirons(); It fills in a Pascal record with the following information: 1. Machine Type 2. System Version 3. Processor Type 4. Whether you have an FPU or not 5. Whether you have color QuickDraw or not 6. Keyboard type 7. Version of the AppleTalk drivers running 8. The WDRefNum (or VRefNum) of the directory of the open System It is described in a just-about-to-be released Technote. The call is expandable, so that in the future, when and if there are more things an application needs to know about, it can return that information as well. Fred