View Single Post
Old 25 January 2005, 20:44   #13
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Wink Moveq rules!

Quote:
Originally Posted by IFW
moveq #5,d0: move direct value 5 to register d0
Don't bother with the q thing, it is a cpu optimization that any decent assembler program will automatically add to it.
However, it's only 5 letters to type moveq and 6 to type move.l so it's worth manually typing them just to save your fingers!

This of course assumes that you know the value you are moving is within 8 bit range. As IFW says, if the value is a constant or might change at some point, move.l is better.

And I also think the Asm-One debugger is awesome - I've never been able to work out the Devpac/MonAm debugger (to be honest, I don't have a manual for it but the Asm-Pro debugger is so logical it doesn't need a manual).
Codetapper is offline  
 
Page generated in 0.16897 seconds with 11 queries