home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20563 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.2 KB

  1. 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+
  2. From: at15+@andrew.cmu.edu (Andrew Lewis Tepper)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Proper way to do Self-Modifying code?
  5. Message-ID: <wfFp_jO00WB707kGgq@andrew.cmu.edu>
  6. Date: 3 Jan 93 10:55:11 GMT
  7. Article-I.D.: andrew.wfFp_jO00WB707kGgq
  8. Organization: School of Computer Science, Carnegie Mellon, Pittsburgh, PA
  9. Lines: 13
  10.  
  11. I'm writing a BitBlt routine that must be _very_ fast. I want to do
  12. animation of many large 256 color objects of a game. It seems the
  13. quickest way to do this would be to take an object before the animation
  14. starts, and create a sequence of move instructions that would write to
  15. just those addresses I want. To draw the object I would just load a
  16. register with the apropriate starting address and call it's draw routine.
  17.  
  18. Is there an accepted way to do this on the Mac?  I know that
  19. self-modifying code can cause problems on chips with caches, so I want
  20. to be as "kosher" as possible.
  21.  
  22. Thanks,
  23. Andy
  24.