2) Xor (W) - Hitachi H8/300H Series Programming Manual

Table of Contents

Advertisement

2.2.63 (2) XOR (W)

XOR (eXclusive OR logical)
Operation
Rd ⊕ (EAs) → Rd
Assembly-Language Format
XOR.W <EAs>, Rd
Operand Size
Word
Description
This instruction exclusively ORs the source operand with the contents of a 16-bit register Rd
(destination register) and stores the result in the 16-bit register Rd.
Available Registers
Rd: R0 to R7, E0 to E7
Rs: R0 to R7, E0 to E7
Operand Format and Number of States Required for Execution
Addressing
Mnemonic
Mode
Immediate
XOR.W
Register direct
XOR.W
Notes
Operands
1st byte
#xx:16, Rd
7
9
Rs, Rd
6
5
184
Condition Code
I
UI H
U
— — — —
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.
Instruction Format
2nd byte
3rd byte
5
rd
rs
rd
Exclusive Logical OR
N
Z
V
C
0
No. of
States
4th byte
IMM
4
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents