home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18315 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.7 KB

  1. Path: sparky!uunet!wupost!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!cbmvax!spence
  2. From: spence@cbmvax.commodore.com (Spencer Shanson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Hardware bashing demo takes an OS friendly turn.
  5. Message-ID: <38399@cbmvax.commodore.com>
  6. Date: 7 Jan 93 22:47:37 GMT
  7. Organization: Commodore, West Chester, PA
  8. Lines: 31
  9.  
  10. In article <1993Jan7.113238.1139@imada.ou.dk> breese@monet.imada.ou.dk (Bjoern Reese) writes:
  11. >I had to give up using WaitBlit() in preference of testing the
  12. >BBUSY bit in the dmaconr hardware register by myself. Using
  13. >WaitBlit() increased the execution time about 1/5 of a frame
  14. >(which I could afford), but as I depended on the preservation
  15. >of all data registers and most address registers I had to dump
  16. >the scratch registers on the stack, which increased execution
  17. >time about 1/2 frame (and that I couldn't afford).
  18.  
  19. I quote from the Autodocs for WaitBlit():
  20.  
  21. *   RESULT
  22. *       Your program waits until the blitter is finished.
  23. *    This routine does not use any the CPU registers.
  24. *    do/d1/a0/a1 are preserved by this routine.
  25. *    It may change the condition codes though.
  26.  
  27. So you should be able to use WaitBlit().
  28.  
  29. >
  30. >Bjoern Reese                   |     Email: breese@imada.ou.dk
  31. >Odense University, Denmark     |     Voice: +45 65 932 182 (private)
  32.  
  33.  
  34. -- 
  35. ---------------------------------------------------------------------------
  36. Spencer Shanson - Amiga Software Engineer     | email: spence@commodore.COM
  37.                                               | or uunet!cbmvax!spence
  38. All opinions expressed are my own, and do not | Bix: sshanson
  39. (necessarily) represent those of Commodore.   | Weebles Wobble, but
  40.                                               | they don't fall down.
  41.