For efficiency,i have to use inline assembly in my code, but I failed to access local variables My code is something like this:
void func(void) { unsigned int i; i=0; #pragma asm MOV A,i #pragma endasm }
but i get a error : error A45: UNDEFINED SYMBOL (PASS-2)
So i there and way to solve this problem
"This seems to be the case because the OP says he MUST use in-line assembly. He appears not to know the best way is to let the compiler generate SRC code and then edit if necessary"
Indeed.
It takes a highly skilled & experienced assembler programmer to beat a modern optimising compiler. It does seem rather unlikely that such a programmer would be asking basic questions like this...