Advance Information
UM-TM57PA20&40_E
8 Bit Microcontroller
38
tenx technology, inc.
Preliminary
Rev 1.3, 2009/10/19
XORLW
Exclusive OR Literal with W
Syntax XORLW
k
Operands
k : 00h ~ FFh
Operation (W)
←
(W) XOR k
Status Affected
Z
OP-Code
01 1111 kkkk kkkk
Description
The contents of the W register are XOR’ed with the eight-bit literal ‘k’. The
result is placed in the W register.
Cycle 1
Example XORLW
0xAF
B : W = 0xB5
A : W = 0x1A
XORWF
Exclusive OR W with “f”
Syntax
XORWF f [,d]
Operands
f : 00h ~ 7Fh, d : 0, 1
Operation (destination)
←
(W) XOR (f)
Status Affected
Z
OP-Code
00 0110 dfff ffff
Description
Exclusive OR the contents of the W register with register ‘f’. If ‘d’ is 0, the
result is stored in the W register. If ‘d’ is 1, the result is stored back in
register ‘f’.
Cycle 1
Example
XORWF REG 1
B : REG = 0xAF, W = 0xB5
A : REG = 0x1A, W = 0xB5