2.2.63 (1) XOR (B)
XOR (eXclusive OR logical)
Exclusive Logical OR
Operation
Rd
⊕
(EAs)
→
Rd
Assembly-Language Format
XOR.B
<EAs>, Rd
Operand Size
Byte
Condition Code
H: Previous value remains unchanged.
N: Set to 1 if the result is negative; otherwise
cleared to 0.
Z:
Set to 1 if the result is zero; otherwise
cleared to 0.
V: Always cleared to 0.
C: Previous value remains unchanged.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
0
—
Description
This instruction exclusively ORs the source operand with the contents of an 8-bit register Rd
(destination register) and stores the result in the 8-bit register Rd.
Available Registers
Rd: R0L to R7L, R0H to R7H
Rs: R0L to R7L, R0H to R7H
Operand Format and Number of States Required for Execution
Notes
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Immediate
XOR.B
#xx:8, Rd
D
rd
IMM
2
Register direct
XOR.B
Rs, Rd
1
5
rs
rd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
183