Hi I am working on ARM (ARM926EJ).
I have one integer pointer. I want to load some value in r5. I have used the following code.
int RegValue = 10; int *ptr; ptr = &RegValue; __asm { LDR r5 , [ptr] } Suppose ptr points to address 0x5FFED94 and *ptr = 10. Now after executing LDR statement I am getting value 0x5FFED94 in r5. But I need value at 0x5FFED94 address to be loaded in r5.i.e r5 must contain 10. Can you tell me if there is some problem in the code. Or if you can suggest me some alternative.
Thanks in advance.