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.
Dear Sirs,
I want to write a function likes below,
int sub(unsigned int x)
{
#pragma ASM
MOV A,#x
#pragma ENDASM
}
But the keil-C shows the message: error A45: UNDEFINED SYMBOL (PASS-2)
Does the Assembler not know how to access the variable in C ?
How could I pass the variable from C to assemble?
Really thanks for your reply.
BR,
Eddie