SphinX
Advanced Member level 3
CCS C compiler Error !
Hi,
When i run this easy program
#include <16f84.h>
1 main()
2 {
3 int a;
4 int b;
5 a=6;
6 b=6;
7 loop:
8 a=a-1;
9 b=b-1;
10 goto loop;
}
and watch the varible a and b
then run step the program
it gives these reuslts
a=6 b=6
a=0606 b=6
a=0505 b=5
a=0404 b=4
... ....
What is this shit ? Why when i decrement a, value of b changes too in this strange manner !?
Thanks
Hi,
When i run this easy program
#include <16f84.h>
1 main()
2 {
3 int a;
4 int b;
5 a=6;
6 b=6;
7 loop:
8 a=a-1;
9 b=b-1;
10 goto loop;
}
and watch the varible a and b
then run step the program
it gives these reuslts
a=6 b=6
a=0606 b=6
a=0505 b=5
a=0404 b=4
... ....
What is this shit ? Why when i decrement a, value of b changes too in this strange manner !?
Thanks