If I am able to load a register (R5) with a value from memory some offset using the command:
LDR R5, [R12, #4]
How would I go about using the value of another register (R7 =0x0004 for example) as the offset?
LDR R5, [R12, &R7]
CodePudding user response:
You almost have it, but the & symbol doesn't belong. It's simply
LDR R5, [R12, R7]
CodePudding user response:
Question was answered in the original questions comment section. Will mark as answered when StackOverflow allows me in two days.
