> My experience on the Mac has been that using movem.l is the fastest 
> way to move big chunks of memory, and if you take advantage of all of 
> the registers, you'll pretty much max out the bus. Something like:
> 
> @0    move.l  (a0)+,d0-d6/a2-a6               // Suck up 48 bytes of data.
>       move.l  d0-d6/a2-a6,(a1)                // Spew it out (can't post-inc)
>       add.w   #48,a1                          // or maybe stash 
> 48.l in a reg.
>       dbra    d7,@0                           //

  yes.. we use this technique to blit memory to the screen in Liberty
  in the fastest possible manner.. the source code for Cube3D and
  Burning (on www.ardiri.com) show how it is done as well.

  but beware.. when the screen size changes.. it wont work anymore :)

az. 
--
Aaron Ardiri 
Java Certified Programmer      http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 8 668 78 72

if you enjoy it, then it aint work :) - rule #106 of life


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to