home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!enterpoop.mit.edu!eff!ssd.intel.com!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!at15+
- From: at15+@andrew.cmu.edu (Andrew Lewis Tepper)
- Newsgroups: comp.sys.mac.programmer
- Subject: Proper way to do Self-Modifying code?
- Message-ID: <wfFp_jO00WB707kGgq@andrew.cmu.edu>
- Date: 3 Jan 93 10:55:11 GMT
- Article-I.D.: andrew.wfFp_jO00WB707kGgq
- Organization: School of Computer Science, Carnegie Mellon, Pittsburgh, PA
- Lines: 13
-
- I'm writing a BitBlt routine that must be _very_ fast. I want to do
- animation of many large 256 color objects of a game. It seems the
- quickest way to do this would be to take an object before the animation
- starts, and create a sequence of move instructions that would write to
- just those addresses I want. To draw the object I would just load a
- register with the apropriate starting address and call it's draw routine.
-
- Is there an accepted way to do this on the Mac? I know that
- self-modifying code can cause problems on chips with caches, so I want
- to be as "kosher" as possible.
-
- Thanks,
- Andy
-