2017-11-27 12:46 PM
How do I access local C variables in Keil using ARM inline Assembly?
#arm #keil #assembly2017-11-27 01:30 PM
Don't have tools to hand, but wouldn't these work?
unsigned int foo = 1234;
LDR R0, =&foo
LDR R0,[R0]
MOV R4, param1
If not, try reading the docs.
2017-11-27 06:37 PM
unsigned int bar(unsigned int r0)
{ unsigned int r1; unsigned int r4 = 1234; __asm { mov r1, r0 add r1, r4 } return(r1);}