IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
227
XOR fr,W
XOR fr,W into fr
Operation:
fr = fr ^ W
Bits affected:
Z
Opcode:
0001 101f ffff ffff
Description:
This instruction performs a bitwise exclusive OR
of the contents of the specified data memory
location and W, and writes the 8-bit result into the
same data memory location. W is left unchanged.
If the result is zero, the Z bit is set.
Cycles:
1
Example:
xor 0x099,w ;move fr XOR W to fr
This example performs a bitwise logical XOR of
W with a value stored in data memory location
0x099. The result is written back to the data
memory location 0x099.
For example, suppose that the data memory
location 0x099 is holds the value 0x0F and W
holds the value 0x13. The instruction takes the
logical XOR of 0x0F and 0x13 and writes the