112
2.2.47 SHAL (shift arithmetic left)
Operation
Rd (shifted arithmetic left )
→
Rd
Assembly-Language Format
SHAL Rd
Operand Size
Byte
Condition Code
I
H
N
Z
V
C
—
—
—
—
∆
∆
∆
∆
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:
Set to 1 when an overflow occurs; otherwise cleared to 0.
C:
Receives the previous value in bit 7.
Description
This instruction shifts an 8-bit general register one bit to the left. The most significant bit shifts
into the carry flag, and the least significant bit is cleared to 0.
The operation is shown schematically below.
C Bit 7 Bit 0
MSB LSB
0
The SHAL instruction is identical to the SHLL instruction except for its effect on the overflow
(V) flag.
Instruction Formats and Number of Execution States
Instruction code
Addressing
mode
Mnem.
Operands
1st byte
2nd byte
3rd byte
4th byte
No. of
states
Register direct
SHAL
Rd
1
0
8
rd
2
Summary of Contents for H8/300L Series
Page 1: ...H8 300L Series Programming Manual ...
Page 6: ...iv ...
Page 8: ...2 ...
Page 11: ......
Page 14: ......
Page 46: ......
Page 48: ......
Page 60: ......
Page 83: ......
Page 116: ......
Page 150: ...144 ...
Page 151: ......
Page 156: ...150 ...