This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem in Comparison in C5510 processor

Hi,

  I am trying to compare simple statement in C5510 processor as.

var1=0;

 if (var1 == 100)

   var1 =0;

as it look like very simple statement but while execution, irrespective of var1 value this if statement always hold true. I am not able to understand the issue. In this case while viewing in mixed mode it takes TC1 flag to test the condition.

When I have tryied to implement same statement as

if((var1 - 100) == 0 )

 var1 = 0;

It worked fine.In this case it did not use TC1 flag status.

Kindly tell me the reason as second statement is just a makeshift arrangement.