Assembler question
micman2
Posts: 18
Hi all,
How I do convert this function C in assembler PASM
flag = 0;
if ( flag == 0 ) & ( Pin_7 == 1) {
flag = 1;
....
.......
.....
} else if ( flag == 1 ) & ( Pin_7 == 0 ) {
flag = 0;
....
.......
.....
}
How I do convert this function C in assembler PASM
flag = 0;
if ( flag == 0 ) & ( Pin_7 == 1) {
flag = 1;
....
.......
.....
} else if ( flag == 1 ) & ( Pin_7 == 0 ) {
flag = 0;
....
.......
.....
}
Comments
Still, value in flag could simply follow what's on P7 -- unless flag is able to have a non-zero value other than one (and if that's the case, my code is bogus).