Logical Shift, 3-Operand
LSH3
13-139
Assembly Language Instructions
Cycles 1
Status Bits These condition flags are modified only if the destination register is R7–R0.
LUF Unaffected
LV Unaffected
UF 0
NMSB of the output
Z1 if a 0 output is generated; 0 otherwise
V0
CSet to the value of the last bit shifted out; 0 for a shift
count
of 0;
unaffected if
dst
is not R7–R0
OVM Operation is not affected by OVM bit value.
Example 1 LSH3 R4,R7,R2
Before Instruction After Instruction
R2 00 0000 0000 R2 00 AC00 0000
R4 00 0000 0018 R4 00 0000 0018
R7 00 0000 02AC R7 00 0000 02AC
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N0N1
Z0Z0
V0V1
C0C0
24 24
Mode Bit