home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5954 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.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: FPU: What am I doing wrong???
  5. Date: 22 Mar 1996 13:34:48 +0100
  6. Organization: dis-
  7. Message-ID: <4iu6p8$3dt@serpens.rhein.de>
  8. References: <4ikpqk$ds@serpens.rhein.de> <42116663@phoenix.owl.de>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. "Frank Wille" <frank@phoenix.owl.de> writes:
  12.  
  13. >  Does Amiga OS support accessing the FPU in interrupts?
  14.  
  15. Well, sure. But obviously have to save its state in your
  16. interrupt routine the same way that you have to save the
  17. CPU registers.
  18.  
  19. >task. But what about interrupts? I can't remember that the FPU
  20. >state is saved by the OS before entering an interrupt handler.
  21.  
  22. It isn't. But most of the CPU registers aren't either.
  23.  
  24. >So maybe the interrupt routine using the FPU should look like this?
  25. >        fsave    -(sp)
  26. [...]
  27. >        frestore (sp)+
  28.  
  29. Correct.
  30. -- 
  31.                                 Michael van Elst
  32.  
  33. Internet: mlelstv@serpens.rhein.de
  34.                                 "A potential Snark may lurk in every tree."
  35.