This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

in-line assembly use variable

Is it possible to refer a C variable inside inline asm? for example,
{
char abc;
#pragma asm
MOV A, abc;
#pragma endasm

}
after compile, I got a error at "MOV A, abc"
variable abc is not recognized by Compiler. I know I can do this in C, I just wonder if there is a way to use variable in inline assembly.
Thank you

0