> So finally to the point. Does anyone know an elegant way to > compare (XOR) two bits in the same register, using midrange > PIC instructions? As you have the two in bit0 and bit4 (ie, bit0 of each nybble) swapf flags,w xorwf flags,w bz same -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist