Hi,
i am using TI code gen compiler. I want to use c variable in inline assembly code. for example,
unsigned int IntStat(void)
{
unsigned int stat;
asm(" mrs r0, CPSR\n\t"
" and stat], r0, #0xC0");
return stat;
}
here i want to use 'stat' in assembly. How can i do that?. Can you give me the exact syntax to do this