View Single Post
Old 04 February 2011, 23:52   #14
frank_b
Registered User
 
Join Date: Jun 2008
Location: Boston USA
Posts: 441
Quote:
Originally Posted by Lonewolf10 View Post
I heard that the movem instruction can be used to clear screens quickly. Is this true and how would it be done?


Regards,
Lonewolf10
Set sp to the top of memory you want to clear.
Zero all registers and

Code:
rept lots of times
movem.l d0-a6,-(sp)
endr
For added fun switch to supervisor and use the usp too

Last edited by frank_b; 29 July 2012 at 13:06. Reason: Added code tags
frank_b is offline  
 
Page generated in 0.04151 seconds with 11 queries