jiangzhengwenjz
Usuario mítico
JPAN said in his guide(Click to get to that thread if you want the full document):
Could anyone help me as I'm a newbie in Assembly?
Simple examples will also be appreciated.
PS: I may not reply immediately for the timezone difference, sorry.
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.You may have noticed something odd, but I’ll point it out anyway. Notice that I load the labels always separated by two, or multiples of two. That is because the Load Lable operation can only fetch the addresses that are four bytes away from them, or multiples of four. That is because Ldr is a 32-bit Word fetching operation, and when added to the PC offset, the offset is shifted by two before adding to the address. That was made to make people’s lives easier, allowing to fetch words that are not 127 but 508 bytes away.
Could anyone help me as I'm a newbie in Assembly?
Simple examples will also be appreciated.
PS: I may not reply immediately for the timezone difference, sorry.
Última edición: