MPLAB X assembly - using xor as an equality operator (pic16f84a)

Опубликовано: 30 Март 2026
на канале: Pizzey Technology
1,770
13

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.