William Chops Westfield wrote: > > No fair. I'm pretty sure we already had a challenge to count the one's > bits in a byte. calculating parity is the same thing... > > BillW Only the LSB is the same. The sample I posted is a bit-counter, but even/odd parity generator produces only a single bit. For example, here's another slow way to do it: CLRW LOOP: CLRC XORWF X,W RRF X,F MOVF X,F SKPZ goto LOOP In this case, the bits are 'added together' with XORs. Scott