How can you access local variables in the arm asm block? One example the software came with looks like this and doesn't work:
int AddUp ( int n, int near *pTab) { __asm { ; open inline-assembly block mov r2,pTab ; R2:=start of table mov r3,n ...
The LDAV and STAV Keil instructions load and store local variable values. They may be used as follows:
void test (int value) { int local_value; __asm { LDAV R1, R2, value STAV R1, R2, local_value } }