home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / dsp / 2543 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  2.2 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!sdcc12!sdcc13!shaehnic
  2. From: shaehnic@sdcc13.ucsd.edu (Steve - Happy Hacker!)
  3. Newsgroups: comp.dsp
  4. Subject: Re: Double-buffered SSI on M56001
  5. Message-ID: <40768@sdcc12.ucsd.edu>
  6. Date: 9 Nov 92 16:38:54 GMT
  7. References: <40697@sdcc12.ucsd.edu> <BxEqML.4pM@world.std.com>
  8. Sender: news@sdcc12.ucsd.edu
  9. Reply-To: shaehnic@ucsd.edu
  10. Organization: HyperHack - San Diego, CA.
  11. Lines: 35
  12. Nntp-Posting-Host: sdcc13.ucsd.edu
  13. In-reply-to: moshier@world.std.com's message of 8 Nov 92 17:15:57 GMT
  14.  
  15. --=}>> On 8 Nov 92 17:15:57 GMT, moshier@world.std.com (Stephen L Moshier) said:
  16.  
  17. >  Use the two-cycle interrupt, not an interrupt handler.  Then check
  18. > the pointer regsiter occasionally in a polling loop to see if it has
  19. > crossed either the middle or end of the buffer.
  20.  
  21. I tried to use the two-word interrupt, but I just can't make anything
  22. useful fit into two instruction words.  If you have any examples (Hey,
  23. it's short :-), please post.  I know this fast-interrupt would be
  24. great to use, but one complex instruction takes both words.
  25.  
  26. The problem with polling in the main loop is that I then have to
  27. guarantee that the main loop runs at least as fast as the SSI
  28. interrupts occur.  If the main loop could run reliably run that fast,
  29. I wouldn't really need the interrupt handler to fetch incoming SSI
  30. data.  The problem is that the main loop does compression and host
  31. communication, so it could very well take a while to loop.
  32.  
  33. Please, if I am missing something, let me know.
  34.  
  35. Also, is there an easy way to check if an addressing register has just
  36. wrapped around in a modulo buffer?  (Accumulator compare is
  37. expensive.) Right now, I carefully pick my buffer address and size so
  38. that a single bit in the register will be set when we went "one
  39. address to far".  Of course, this doesn't use modulo addressing at
  40. all, but I manually force the register back to start when the bit is
  41. set.
  42.  
  43. Is any status flag set on modulo wrap-around?
  44.  
  45. Thanks!
  46. -Steve
  47.  
  48. Steve Haehnichen          ---  PGP public key available upon request.  ---
  49. shaehnic@ucsd.edu     (FTP pub/crypt/unix_pgp20.tar.Z from ghost.dsi.unimi.it)
  50.