![TENX TECHNOLOGY TM57PE10 User Manual Download Page 44](http://html.mh-extra.com/html/tenx-technology/tm57pe10/tm57pe10_user-manual_1087886044.webp)
Advance Information
UM-TM57PE10_E
8-Bit Microcontroller
44
tenx technology inc.
Preliminary
Rev 1.4, 2012/01/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