Hi Dave,
> Does anyone have any thoughts on the advantages/disadvantages of ARM code
> versus THUMB code?
THUMB in ROM: Smaller, saves precious IWRAM.
ARM in IWRAM: Generally about 4x faster than thumb in ROM.
Putting ARM anywhere but IWRAM isn't a good idea as it'll be slower than
THUMB. Generally speaking, you should put short, speed-critical code in
IWRAM as ARM and longer, less repetitive code in ROM as THUMB. Well
written ARM code in IWRAM will always be faster than well written THUMB
code in IWRAM because it takes less instructions to achieve the same
results. (And, unlike the rest of the GBA's memory, IWRAM has a 32-bit
bus so the bigger instruction size doesn't decrease performance.)
--
Cheers,
James.
/\ apex James Daniels
//\\ designs james.daniels@...
//__\\ http://www.apex-designs.net