home *** CD-ROM | disk | FTP | other *** search
- Path: jojo.IN-Berlin.DE!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- References: <4ipcd9$24l@sun1000.pwr.wroc.pl> <19960320.3FE920.11D7C@ao091.du.pipex.com>
- From: "Bernhard Graf" <graf@jojo.IN-Berlin.DE>
- Date: Thu, 21 Mar 1996 18:58:36 +0100
- Distribution: world
- X-NewsReader: IntuiNews 1.3a (7.9.95)
- Subject: Re: COPROCESSOR EMULATOR..
- Message-ID: <66095638@jojo.IN-Berlin.DE>
-
- In article <19960320.3FE920.11D7C@ao091.du.pipex.com>: "Re: COPROCESSOR EMULATOR.."
- Mathew Hendry <m.hendry@dial.pipex.com> wrote:
-
- MH> A Member of Elysium (st103@sco.zsi.pwr.wroc.pl) wrote:
- MH> : I remember from okd days that there was an 68010 emulator for 68000. If i
- MH> : remember good it was based on the fact that there is an interupt when
- MH> : procesor meets an unknown command and ib than interrupt one could do the
- MH> : emulation. Is this possible to do th same with the Math coprocessor?
- MH>
- MH> Yes. It would be very slow indeed, though. You would need to intall an
- MH> exception handler to catch Line 1111 emulation exceptions and emulate the
- MH> instruction which caused the exception.
-
- I say no. I thought about that subject years ago (wenn I had a 68000 and
- CoPros were very expensive).
-
- The Problem: The Amiga's multitasking OS.
- How do you get a CoPro in the system, when multitasking is yet running?
- Remember that for every task switch you have to store ALL registers of
- the old task and restore ALL registers for the next active task.
- From the moment you start the emulator, it has to store all real registers
- and the fake registers of the emulated FPU. Maybe this is not a problem
- *IF* the OS checks for a FPU on every task switch and not only at boot
- time. The problem is that for the first time after the emulator has
- been started, all tasks have to restore ONLY the real 68k-registers and
- not the full set (including the FPU registers).
-
- If you have any idea how to solve this, it may be done (but what for ;-).
-
- MH> : Have saoebody done a thig liek this?
- MH>
- MH> Not that I know of, although you might use as a starting point:
-
- Yes, on a Macintosh.
-
-
- Ciao
- --
- Bernhard Graf
- mail graf@jojo.IN-Berlin.DE
- graffbgd@sp.zrz.TU-Berlin.DE
-