Datasheet

FS98O22
Rev. 1.6 144/146
XORLW
Exclusive OR literal with W
Syntax XORLW k
0 k FFh
Operation
[W] [W] XOR k
Flag Affected Z
Description Exclusive OR the content of the W register and the eight-bit literal “k”. The result is
stored in the W register.
Cycle 1
Example:
XORLW 5Fh
Before instruction:
W = Ach
After instruction:
W = F3h
XORWF
Exclusive OR W and f
Syntax XORWF f, d
0 f FFh
d [0,1]
Operation
[Destination] [W] XOR [f]
Flag Affected Z
Description Exclusive OR the content of the W register and [f]. If d is 0, the result is stored in the
W register. If d is 1, the result is stored back in [f].
Cycle 1
Example:
XORWF OPERAND,
1
Before instruction:
OPERAND = 5Fh, W = Ach
After instruction:
OPERAND = F3h
FORTUNE'
Properties
For Reference Only