Tool/software: Code Composer Studio
Hi,
I am trying to compile the following code,
int main(void)
{
int val = 50;
__asm volatile (" MOV R0, %0": :"r"(val));
return 0;
}
Upon compilation, I am facing this issue,
error #18: expected a ")"
This error occurs at the second line of this code snippet (i.e. at the __asm line).
I'm using Code Composer Studio Version: 10.0.0.00010 (Compiler version : TI v20.2.0.LTS).
Please advise.