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

Table of Contents

Advertisement

2.2.50 (2) ROTXR (W)

ROTXR (ROTate with eXtend carry Right)
Operation
Rd (right rotation through carry bit) → Rd
Assembly-Language Format
ROTXR.W Rd
Operand Size
Word
Description
This instruction rotates the bits in a 16-bit register Rd (destination register) one bit to the right
through the carry flag. The carry flag is rotated into the most significant bit (bit 15). The least
significant bit rotates into the carry flag.
MSB
b
15
Available Registers
Rd: R0 to R7, E0 to E7
Operand Format and Number of States Required for Execution
Addressing
Mnemonic
Mode
Register direct
ROTXR.W
Notes
. . . . . .
Operands
1st byte
Rd
1
Condition Code
I
UI H
— — — —
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: Receives the previous value in bit 0.
LSB
b
C
0
Instruction Format
2nd byte
3rd byte
3
1
rd
157
Rotate through Carry
U
N
Z
V
C
0
No. of
States
4th byte
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents