Exclusive OR Literal with W
The contents of the W register are XOR’ed with the eight-bit literal ‘k’. The result is placed in the W register.
[the_ad id=”3059″]Syntax:
[ label ] XORLW k
Operation:
(W) .XOR. k → (W)
Operands:
- k is from 0 to 255
Status Affected: Z
Example:
XORLW 0x1B
Before instruction:
W = 0x2C
After instruction:
W = 0x37[the_ad id=”3059″]
Example:
XORLW b'01011101'
Before instruction:
W = b'11010110'
After instruction:
W = b'10001011'