Thread: [Tutorial] GBA ASM Programming
View Single Post
Old January 6th, 2011 (06:59 PM).
colcolstyles's Avatar
Yours truly
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Quote originally posted by Xenesis:
The difference between the two is generally rather minor. You're unlikely to add much bloat to the game's code as is unless you start abusing swi operations relentlessly.
True, although if the code is in a loop and you're already pressed for time (which you shouldn't be if you're hacking a commercial ROM), it could possibly make a difference. Actually, if this is to be used in a loop, you're probably better off "mov"-ing the 7 into a register outside the loop so that you only need one instruction (an "and") to clear bits while inside the loop.

Brother of Vrai
Reply With Quote