home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6168 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: COPROCESSOR EMULATOR..
  5. Date: 25 Mar 1996 12:36:06 +0100
  6. Organization: dis-
  7. Message-ID: <4j60f6$t3m@serpens.rhein.de>
  8. References: <4ipcd9$24l@sun1000.pwr.wroc.pl> <19960320.3FE920.11D7C@ao091.du.pipex.com> <66095638@jojo.IN-Berlin.DE> <4itm4i$28d@serpens.rhein.de> <66095651@jojo.IN-Berlin.DE>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. "Bernhard Graf" <graf@jojo.IN-Berlin.DE> writes:
  12.  
  13. >In article <4itm4i$28d@serpens.rhein.de>: "Re: COPROCESSOR EMULATOR.."
  14. >Michael van Elst <mlelstv@serpens.rhein.de> wrote:
  15. >MvE> "Bernhard Graf" <graf@jojo.IN-Berlin.DE> writes:
  16. >MvE> 
  17. >MvE> >Remember that for every task switch you have to store ALL registers of
  18. >MvE> >the old task and restore ALL registers for the next active task.
  19. >MvE> 
  20. >MvE> That's what the mathieee libraries have to solve for non-standard
  21. >MvE> coprocessors. They hook into the tasks's dispatch vectors.
  22.  
  23. >If a task is interupted by the MT-dispatcher while running through a
  24. >mathieee-library-routine, it also has to store only this tasks
  25. >FPU-registers and reload them, when regaining processor-control.
  26.  
  27. That is the same that a FPU emulator would have to do.
  28.  
  29. >Those non-standard FPU-registers are not defined after leaving the
  30. >ieee-library-routine.
  31.  
  32. No FPU register is defined at all.
  33.  
  34. >This is an easy programming task, if you know, how to hook into the
  35. >dispatcher.
  36.  
  37. This is documented, although it lacks some decent arbitration
  38. mechanism and it works on a per-task basis and not globally.
  39.  
  40. >I am still convinced that a FPU-emulator under Amiga-OS is only
  41. >possible, if you start it at boot-time before multitasking is running.
  42.  
  43. Obviously you cannot use the FPU in tasks that were started before the
  44. emulator is set up, but the emulator can wedge into AddTask() and create
  45. default switch and launch functions. I don't see a problem here.
  46.  
  47. -- 
  48.                                 Michael van Elst
  49.  
  50. Internet: mlelstv@serpens.rhein.de
  51.                                 "A potential Snark may lurk in every tree."
  52.