#95840 - Dwedit - Mon Jul 31, 2006 8:15 am
What's the best way to create a sequence of long jump instructions in THUMB mode without destroying any registers? The jumps are too long for the b instruction, and THUMB doesn't have ldr pc,=xxxx.
Pretty much I want constant size for each jump, so I can later do something like:
function_1 = base + 0*N
function_2 = base + 1*N
function_3 = base + 2*N
function_4 = base + 3*N
function_5 = base + 4*N
...
In fact, I don't really care if the code that does the jumps is in thumb or not, I just want to call a jump FROM thumb, TO thumb code.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
Pretty much I want constant size for each jump, so I can later do something like:
function_1 = base + 0*N
function_2 = base + 1*N
function_3 = base + 2*N
function_4 = base + 3*N
function_5 = base + 4*N
...
In fact, I don't really care if the code that does the jumps is in thumb or not, I just want to call a jump FROM thumb, TO thumb code.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."