Hello,
I have implemented jump tables on Cortex M3 without issue doing something like
Function PROC B.W TheFunctionCode ENDP
Now I am moving to Cortex M0 where B.W does not exist and I don't know how to do. Replacing B.W by B does not work since TheFunctionCode is a 32 bits symbol ( in a 24 bits addressing space ).
The solution I have found right now is to do something like
Function PROC LDR R7, label_Function BX R7 ENDP ... label_Function DCD TheFunctionCode
However R7 might be used by calling code so I would have to add a PUCH/POP or something and I find it pretty complex.
Is there any simpler way to do ?
Thank you