Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
// assume value is the 8 bit number you want to check.
char bit, count;
bit=0;
count=0;
for(bit=0;bit<8;bit++)
{
if (value&0x01)
count++;
value>>1;
}
}
at this point you can check the low order bit of count for oddness as Ron suggested.
movwf temp
rrf temp,f
xorwf temp,w
rrf temp,f
xorwf temp,w
rrf temp,f
xorwf temp,w
rrf temp,f
xorwf temp,w
rrf temp,f
xorwf temp,w
rrf temp,f
xorwf temp,w
rrf temp,f
xorwf temp,w