Added some debugging for misc. UIs.
tron = !tron;
sstate = 0;
}
tron = !tron;
sstate = 0;
}
+ if(tron)
+ dsp[1] |= SEGP;
+ else
+ dsp[1] &= ~SEGP;
+ if(PINB & 4)
+ dsp[1] |= SEGP;
- if((sstate == 0) & ((PINB & 4) == 0)) {
+ if((sstate == 0) && !(PINB & 4)) {
stime = oticks;
sstate = 1;
}
stime = oticks;
sstate = 1;
}
- if((sstate == 1) & ((PINB & 4) == 1)) {
+ if((sstate == 1) && (PINB & 4)) {
stime = oticks - stime;
sstate = 2;
}
stime = oticks - stime;
sstate = 2;
}