| ??? 04/09/03 18:46 Read: times |
#43144 - Not Branching conditional statement 'c ' |
The "c" code below executes regardless of the value of VAL_X. If X == 3, the condition
is executed. If I changed the code to incremented from zero and used the condition statement "if (x == 4 & A ==1) the condition is evaluated properly. What wrong here? I also included the generated code, what is it meaning. regards, Spencer 'C' Code: VAR_X--; // var = 4 if(VAR_X == 0 & A == 0) { bit_1 = !ON; VAR = 4; bit_flag = DONE; } Compiler produced: mov A,VAR orl A,11 add A,#FF and c,/P1.3 JNC XXXX |
| Topic | Author | Date |
| Not Branching conditional statement 'c ' | 01/01/70 00:00 | |
| RE: Not Branching conditional statement \'c \' | 01/01/70 00:00 | |
| RE: Not Branching conditional statement \'c \' | 01/01/70 00:00 | |
| RE: Not Branching conditional statement \'c \' | 01/01/70 00:00 | |
| RE: Not Branching conditional statement \'c \' | 01/01/70 00:00 | |
RE: Not Branching conditional statement | 01/01/70 00:00 |



