SX Users Manual Rev. 3.1
© 2000 Scenix Semiconductor, Inc. All rights reserved.
Chapter 3 Instruction Set
3.6.57 XOR W,#lit
XOR of W and Literal into W
W = W ^ lit
1111 kkkk kkkk
This instruction performs a bitwise exclusive OR of the contents of W and an 8-bit
literal value, and writes the 8-bit result into W. If the result is 00h, the Z bit is set.
;complement four low-order bits of W
This example performs a bitwise logical XOR of W with the literal value #0Fh. The
result is written back to W.
For example, suppose that W contains the value 51h. The instruction takes the
logical XOR of this value with 0Fh and writes the result, 5Eh, into W. The result is
nonzero, so the Z bit is cleared.