We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all.
Does it possible to use local C-vars in "#pragma asm" block? I mean something like this:
void Foo(void) { BYTE t; #pragma asm mov r0, t; // error A45: UNDEFINED SYMBOL ...
Well, I always says that it's best to keep your assembler in assembler modules, and call them from 'C'.
the issue is "do you want to fight your way through or just do it"..The real *** with #pargma asm is that the entire module must be debugged in assembler. OK, do it and then - have fun
Erik
"The real *** with #pargma asm is that the entire module must be debugged in assembler"
Yes, that's true.
So, given that you have to study the assembler in the .SRC file, and you have to debug it in assembler, where is the advantage in having it inline in a 'C' file?!
That's the other reason not to do inline assembler - specifically in C51