Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!cbmvax!carolyn From: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Newsgroups: comp.sys.amiga.programmer Subject: Re: 68000 Exceptions Message-ID: <22262@cbmvax.commodore.com> Date: 8 Jun 91 00:10:41 GMT References: Reply-To: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Organization: Commodore, West Chester, PA Lines: 29 In article phil@adam.adelaide.edu.au (Phil Kernick) writes: >What does KS1.3 do when the 680[01]0 processor gets an F-line exception? >Does it just bring up the GURU Alert or does it check for the presence >of a coprocessor (68881.resource??) and then pass control to it if it >exists? Not positive on this but perhaps my trap example in the 1.3 RKM exec/tasks chapter will help. It installs trap code for a task and then proceeds to divide by zero harmlessly with the div 0 exceptions just counted by the trap code. Make sure you use -b0 when you compile the C part though (that was fixed in the comments for the Fish Disk version). As for math coprocessors, I think each of your tasks have to open one of the mathiee... libraries to get the proper task-switch handling of the FPU. I believe 1.3 SetPatch installs default exception handling code for FPU instructions executed on a machine without an FPU and that default code probably puts up a GURU. -- ========================================================================== Carolyn Scheppner -- Tech. Mgr. CATS - Commodore Amiga Technical Support PHONE 215-431-9180 {uunet,rutgers}!cbmvax!carolyn carolyn@commodore.com "Under the multitasking operating system, the trackdisk.device is the defied interface..." - Bryce ==========================================================================