Rotxr (Rotate With Extend Carry Right) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

ROTXR (ROTate with eXtend carry Right)

<Operation>
Rd (rotated with carry right) → Rd
<Assembly-Language Format>
ROTXR Rd
<Examples>
ROTXR R5L
<Operand Size>
Byte
<Description>
This instruction rotates an 8-bit general register one bit to the right through the carry flag. The
least significant bit is rotated into the carry flag. The carry flag rotates into the most
significant bit.
The operation is shown schematically below
MSB
Bit 7
<Instruction Formats>
Addressing
mode
Register direct
LSB
Bit 0
C
Mnem.
Operands
ROTXR
Rd
<Condition Code>
I
— — — —
I: Previous value remains unchanged.
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: Cleared to "0."
C: Receives the previous value in bit 0.
Instruction code
1st byte
2nd byte
1
3
0
rd
101
ROTXR
H
N
Z
3rd byte
4th byte
V
C
0
No. of
states
2

Advertisement

Table of Contents
loading

Table of Contents