home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / atari / st / tech / 4584 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.8 KB

  1. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!warwick
  2. From: warwick@cs.uq.oz.au (Warwick Allison)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: Sprite code (Re: Second&last time: Hacking Contest)
  5. Message-ID: <10007@uqcspe.cs.uq.oz.au>
  6. Date: 27 Aug 92 04:08:16 GMT
  7. References: <438@muller.loria.fr> <1992Aug06.184949.22119@infoserver.th-darmstadt.de> <439@muller.loria.fr> <1992Aug09.011934.47152@news.th-darmstadt.de> <440@muller.loria.fr> <9777@uqcspe.cs.uq.oz.au> <441@muller.loria.fr> <9817@uqcspe.cs.uq.oz.au> <446@muller.loria
  8. Sender: news@cs.uq.oz.au
  9. Reply-To: warwick@cs.uq.oz.au
  10. Lines: 40
  11.  
  12. >|> Hardly useful for anything but UNMASKED single-bitplane graphics, which 
  13.  
  14. >Actually I said or.w d0,(a0) _type_ instructions. By this I also mean
  15. >and.w d0,(a0), eor.w d0,(a0) ... The code does proper masking.
  16.  
  17. I don't believe it is possible to implement:
  18.  
  19.     move.l    (a0),d0
  20.     and.l    d1,d0
  21.     or.l    d2,d0
  22.     move.l    d0,(a0)
  23.  
  24. more efficiently without the use of the d0 temporary.  Certainly it won't
  25. be more efficient on anything with a cache or a fast CPU (relative to bus).
  26.  
  27. >|>     orl   #....,(a0)     (3 words)
  28. >|>     addl  d0,a0          (1 word)
  29.  
  30. >even better:
  31. >    or.l    #...,(a0)
  32. >    or.l    #...,80(a0)
  33. >        or.l    #...,160(a0)
  34. >      :      :
  35. >saving 4cy/long word.
  36.  
  37. And losing the ability to work on non-ST-low resolutions (eg. TT-medium,
  38. Falcon 640xHx16).
  39.  
  40. >|> (Of course, this is only acceptable for HACK CONTESTS.  Anyone who seriously
  41. >|> considers this a "programming technique" is a beauxault)
  42. >                                                 ^^^^^^^^^ a what?
  43.  
  44.                                                   a bozo, pardon my French :-)
  45. --
  46. Warwick
  47. --
  48.   _-_|\      warwick@cs.uq.oz.au            /Disclaimer:
  49.  /     * <-- Computer Science Department,  /  
  50.  \_.-._/     University of Queensland,    /      void (if removed)
  51.       v      Brisbane, Australia.        /  
  52.