2.2.54 (3) SHAR (L)
SHAR (SHift Arithmetic Right)
Shift Arithmetic
Operation
ERd (right arithmetic shift)
→
ERd
Assembly-Language Format
SHAR.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 0.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
0
↕
Description
This instruction shifts the bits in a 32-bit register ERd (destination operand) one bit to the right.
Bit 0 shifts into the carry flag. Bit 31 shifts into itself. Since bit 31 remains unaltered, the sign
does not change.
Available Registers
ERd: ER0 to ER7
Operand Format and Number of States Required for Execution
Notes
LSB
b
31
b
0
. . . . . .
C
MSB
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Register direct
SHAR.L
ERd
1
1
B
0 erd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
166