gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

ASM > Quick Question... (mov lr,pc \ ldr pc,=label == bl label?)

#91558 - Dwedit - Fri Jul 07, 2006 11:00 pm

Is this:
mov lr,pc
ldr pc,=label

equivalent to this:
bl label

but will work for long calls?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#91564 - DekuTree64 - Fri Jul 07, 2006 11:11 pm

Yep
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku