SHLL (SHift Logical Left)
SHLL
<Description>
This instruction shifts an 8-bit general register one bit to the left. The least significant bit is
cleared to "0." The most significant bit shifts into the carry flag.
The operation is shown schematically below.
The SHLL instruction is identical to the SHAL instruction except for its effect on the overflow
(V) flag.
<Instruction Formats>
<Operation>
Rd (shifted logical left )
→
Rd
<Assembly-Language Format>
SHLL
Rd
<Examples>
SHLL 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 0.
I
H
N
Z
V
C
—
—
—
—
↕
↕
0
↕
C
Bit 7
Bit 0
∧
∧
0
∧
MSB
LSB
Register direct
SHLL
Rd
1
0
0
rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
106
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...