2.2.53 (3) SHAL (L)
SHAL (SHift Arithmetic Left)
Shift Arithmetic
Operation
ERd (left arithmetic shift)
→
ERd
Assembly-Language Format
SHAL.L
ERd
Operand Size
Longword
Condition Code
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: Set to 1 if an overflow occurs; otherwise
cleared to 0.
C: Receives the previous value in bit 31.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
↕
↕
Description
This instruction shifts the bits in a 32-bit register ERd (destination operand) one bit to the left. The
most significant bit shifts into the carry flag. The least significant bit (bit 0) is cleared to 0.
Available Registers
ERd: ER0 to ER7
Operand Format and Number of States Required for Execution
Notes
The SHAL instruction differs from the SHLL instruction in its effect on the overflow flag.
LSB
MSB
b
31
b
0
. . . . . .
C
0
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Register direct
SHAL.L
ERd
1
0
B
0 erd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
163