ROTL (ROTate Left)
ROTL
<Description>
This instruction rotates an 8-bit general register one bit to the left. The most significant bit is
rotated to the least significant bit, and also copied to the carry flag.
The operation is shown schematically below.
<Instruction Formats>
<Operation>
Rd (rotated left)
→
Rd
<Assembly-Language Format>
ROTL
Rd
<Examples>
ROTL R2L
<Operand Size>
Byte
<Condition Code>
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 7.
I
H
N
Z
V
C
—
—
—
—
↕
↕
0
↕
Register direct
ROTL
Rd
1
2
8
rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
C
Bit 7
Bit 0
∧
∧
MSB
LSB
98
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...