Tool/software: TI C/C++ Compiler
I tried to test the TSET instruction using the following code. I do not see VarA being changed at all. Can someone please help?
Thanks,
Dhammika
-----------------
Uint16 VarA, VarB;
int main(void)
{
asm(" NOP ");
asm(" TSET @_VarA,#4 ");
asm(" SB $10,NTC ");
asm(" TSET @_VarB,#6 ");
asm(" SB $20,UNC ");
asm("$10: ");
asm(" TCLR @_VarB,#6 ");
asm(" NOP ");
asm("$20: ");
return 0;
}