Lsr2 (Logical Shift To The Right Direction) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

7.49

LSR2 (Logical Shift to the Right Direction)

Make a logical right shift of the word data in "Ri" by "{u4 + 16}" bits, store the result to
"Ri".
■ LSR2 (Logical Shift to the Right Direction)
Assembler format:
LSR2 #u4, Ri
Operation:
Ri > > {u4 + 16} → Ri
Flag change:
N: Cleared
Z: Set when the operation result is "0", cleared otherwise.
V: Unchanged
C: Holds the bit value shifted last.
Execution cycles:
1 cycle
Instruction format:
Example:
LSR2 #8, R3
N
Z
V
C
0
C
C
MSB
1
0
1
1
Instruction bit pattern :
1011 0001 1000 0011
R3
F F F F F F F F
N Z V C
CCR
0 0 0 0
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
0
0
0
1
u4
LSB
Ri
R3
0 0 0 0 0 0 F F
N Z V C
CCR
0 0 0 1
After execution
143

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents