home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!warwick
- From: warwick@cs.uq.oz.au (Warwick Allison)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Sprite code (Re: Second&last time: Hacking Contest)
- Message-ID: <10007@uqcspe.cs.uq.oz.au>
- Date: 27 Aug 92 04:08:16 GMT
- 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
- Sender: news@cs.uq.oz.au
- Reply-To: warwick@cs.uq.oz.au
- Lines: 40
-
- >|> Hardly useful for anything but UNMASKED single-bitplane graphics, which
-
- >Actually I said or.w d0,(a0) _type_ instructions. By this I also mean
- >and.w d0,(a0), eor.w d0,(a0) ... The code does proper masking.
-
- I don't believe it is possible to implement:
-
- move.l (a0),d0
- and.l d1,d0
- or.l d2,d0
- move.l d0,(a0)
-
- more efficiently without the use of the d0 temporary. Certainly it won't
- be more efficient on anything with a cache or a fast CPU (relative to bus).
-
- >|> orl #....,(a0) (3 words)
- >|> addl d0,a0 (1 word)
-
- >even better:
- > or.l #...,(a0)
- > or.l #...,80(a0)
- > or.l #...,160(a0)
- > : :
- >saving 4cy/long word.
-
- And losing the ability to work on non-ST-low resolutions (eg. TT-medium,
- Falcon 640xHx16).
-
- >|> (Of course, this is only acceptable for HACK CONTESTS. Anyone who seriously
- >|> considers this a "programming technique" is a beauxault)
- > ^^^^^^^^^ a what?
-
- a bozo, pardon my French :-)
- --
- Warwick
- --
- _-_|\ warwick@cs.uq.oz.au /Disclaimer:
- / * <-- Computer Science Department, /
- \_.-._/ University of Queensland, / void (if removed)
- v Brisbane, Australia. /
-