Blah
Free supporter
- 1,924
- Posts
- 12
- Years
- Unknown Island
- Seen Feb 19, 2025
JPAN said in his guide:
After that he said a lot to explain how to solve the problem of misaligned code, such as adding "add r0, r0, #0x0" or other code without real meaning. I could not understand the above quoted words so I couldn't get what he said.
Could anyone help or give me an example? That will be very appreciated. :)
I think he is misinformed? Using ldr to load values/pointers consecutively proves no problem. Most of the time the pointers are stored as "definitions" at the end of the routine after compilation.
Code:
ldr r0, =(0xsomething)
ldr r1, =(0xSomethingElse)