View Single Post
Old 06 February 2011, 00:12   #22
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by pmc View Post
But on a 68000 equipped Amiga this wouldn't be faster than using the blitter to clear memory surely.
Pretty common method to clear the screen on 68000 is this:
Clear the upper half using the blitter, clear the bottom half using the CPU [movem.l dx-ax,-(a7)]



Quote:
Originally Posted by frank_b View Post
There is a draw back to the movem method to clear memory. Can you guess what it is?
Depending on the size of memory you want to clear and the number of used registers in the movem loop, you may have to clear the last bytes with some extra move.b/w./.l instructions.
StingRay is offline  
 
Page generated in 0.04273 seconds with 10 queries