Fujitsu CM71-00101-5E ユーザーズマニュアル
![Fujitsu](https://files.manualsbrain.com/attachments/6c4642b33d2edbd09f94719c20a133aa0e862902/common/fit/150/50/80a45702a21fefb1823bce6851e87db450dccf7792cb572ebc8a90330a68/brand_logo.png)
138
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.44
LSL (Logical Shift to the Left Direction)
Makes a logical left shift of the word data in "Ri" by "Rj" bits, stores the result to "Ri".
Only the lower 5 bits of "Rj", which designates the size of the shift, are valid and the
shift range is 0 to 31 bits.
Only the lower 5 bits of "Rj", which designates the size of the shift, are valid and the
shift range is 0 to 31 bits.
■
LSL (Logical Shift to the Left Direction)
Assembler format:
LSL Rj, Ri
Operation:
Ri << Rj
→
Ri
Flag change:
N: Set when the MSB of the operation result is "1", cleared when the MSB is "0".
Z: Set when the operation result is "0", cleared otherwise.
V: Unchanged
C: Holds the bit value shifted last. Cleared when the shift amount is "0".
Execution cycles:
1 cycle
Instruction format:
Example:
LSL R2, R3
N
Z
V
C
C
C
–
C
MSB
LSB
1
0
1
1
0
1
1
0
Rj
Ri
R2
R3
R2
R3
F F F F F F 0 0
0 0 0 0
0 0 0 8
F F F F F F F F
0 0 0 0
0 0 0 8
N Z V C
CCR
CCR
N Z V C
1 0 0 1
0 0 0 0
Before execution
After execution
Instruction bit pattern : 1011 0110 0010 0011