home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18287 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!wupost!howland.reston.ans.net!paladin.american.edu!gatech!concert!samba!usenet
  3. From: Todd_Lewis@unc.edu (Todd M. Lewis)
  4. Subject: Re: Hardware bashing demo takes an OS friendly turn.
  5. Message-ID: <1993Jan7.152609.1157@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: guitar.oit.unc.edu
  8. Organization: UNC Office of Information Technology
  9. References: <1993Jan7.113238.1139@imada.ou.dk>
  10. Date: Thu, 7 Jan 1993 15:26:09 GMT
  11. Lines: 28
  12.  
  13. In article <1993Jan7.113238.1139@imada.ou.dk> breese@monet.imada.ou.dk (Bjoern  
  14. Reese) writes:
  15. >The recent discussion on hardware bashing made me wonder if I
  16. >could adjust one of my demos to be more OS friendly.[...]
  17.  
  18. >I had to give up using WaitBlit() in preference of testing the
  19. >BBUSY bit in the dmaconr hardware register by myself. Using
  20. >WaitBlit() increased the execution time about 1/5 of a frame
  21. >(which I could afford), but as I depended on the preservation
  22. >of all data registers and most address registers I had to dump
  23. >the scratch registers on the stack, which increased execution
  24. >time about 1/2 frame (and that I couldn't afford).
  25.  
  26. You toasted yourself.  Here, have a quote from the AutoDocs for
  27. WaitBlit():
  28.    RESULT
  29.        Your program waits until the blitter is finished.
  30.     This routine does not use any the CPU registers.
  31.     do/d1/a0/a1 are preserved by this routine.
  32.     It may change the condition codes though.
  33. Otherwise, it looks like you've done a nice job.  Thanks for
  34. posting the code.
  35.  
  36. >Bjoern Reese                   |     Email: breese@imada.ou.dk
  37. --
  38.  _/_/_/  _/     Todd_Lewis@unc.edu          You can lead a horse to 
  39.   _/    _/     utoddl@guitar.oit.unc.edu   Mohammad, but you can't make
  40.  _/    _/_/_/                             a mountain drink a mole hill.
  41.