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

Hide thumbs Also See for H8/300L Series:
Table of Contents

Advertisement

2.2.44 ROTXR (rotate with extend carry right)

Operation
Rd (rotated with carry right) → Rd
Assembly-Language Format
ROTXR Rd
Operand Size
Byte
Condition Code
I
H
— —
I:
Previous value remains unchanged.
H:
Previous value remains unchanged.
N:
Set to 1 when the result is negative; otherwise cleared to 0.
Z:
Set to 1 when the result is zero; otherwise cleared to 0.
V:
Cleared to 0.
C:
Receives the previous value in bit 0.
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 and Number of Execution States
Addressing
mode
Mnem.
Register direct ROTXR
N
Z
V
C
0
Instruction code
Operands 1st byte
Rd
1
3
LSB
Bit 0
2nd byte
3rd byte
0
rd
C
No. of
4th byte
states
2
109

Advertisement

Table of Contents
loading

Table of Contents