Xorc (Exclusive Or Control Register) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

XORC (eXclusive OR Control register)

<Operation>
CCR ⊕ #IMM → CCR
<Assembly-Language Format>
XORC #xx:8, CCR
<Examples>
XORC #H'50, CCR
<Operand Size>
Byte
<Description>
This instruction exclusive-ORs the condition code register (CCR) with immediate data and
places the result in the condition code register. Bits 6 and 4 are exclusive-ORed as well as the
flag bits.
No interrupt requests are accepted immediately after this instruction. All interrupts, including
the nonmaskable interrupt (NMI), are deferred until after the next instruction.
<Instruction Formats>
Addressing
mode
Immediate
Mnem.
Operands
XORC
#xx:8, CCR
<Condition Code>
I
I: Exclusive-ORed with bit 7 of the
immediate data.
H: Exclusive-ORed with bit 5 of the
immediate data.
N: Exclusive-ORed with bit 3 of the
immediate data.
Z: Exclusive-ORed with bit 2 of the
immediate data.
V: Exclusive-ORed with bit 1 of the
immediate data.
C: Exclusive-ORed with bit 0 of the
immediate data.
Instruction code
1st byte
2nd byte
0
5
IMM
116
H
N
Z
3rd byte
4th byte
XORC
V
C
No. of
states
2

Advertisement

Table of Contents
loading

Table of Contents