Fujitsu CM71-00101-5E 사용자 설명서
![Fujitsu](https://files.manualsbrain.com/attachments/6c4642b33d2edbd09f94719c20a133aa0e862902/common/fit/150/50/80a45702a21fefb1823bce6851e87db450dccf7792cb572ebc8a90330a68/brand_logo.png)
146
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.52
ASR2 (Arithmetic Shift to the Right Direction)
Makes an arithmetic right shift of the word data in "Ri" by "{u4 + 16}" bits, stores the
result to "Ri".
result to "Ri".
■
ASR2 (Arithmetic Shift to the Right Direction)
Assembler format:
ASR2 #u4, Ri
Operation:
Ri >> {u4 + 16}
→
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.
Execution cycles:
1 cycle
Instruction format:
Example:
ASR2 #8, R3
N
Z
V
C
C
C
–
C
MSB
LSB
1
0
1
1
1
0
0
1
u4
Ri
R3
R3
F F F F F F F 0
F 0 F F F F F F
N Z V C
CCR
CCR
N Z V C
1 0 0 1
0 0 0 0
Instruction bit pattern :
1011 1001 1000 0011
Before execution
After execution