I demonstrate how the XORLW instruction can be used instead of an equality operator (=) when comparing values. This is actually quite easy to do when you understand the truth table for the XOR logic gate and how the STATUS Z bit can be used.
My example code repeatedly checks the binary value (bit pattern) of the PORT B file register until a specified condition is met.