FR81 Family
328 FUJITSU MICROELECTRONICS LIMITED CM71-00105-1E
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.123
7.123 LSR (Logical Shift to the Right Direction)
Makes a logical right 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.
● Assembler Format
LSR 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 zero, cleared otherwise.
V: Unchanged.
C: Holds the bit value shifted last. Cleared when the shift amount is zero.
● Classification
Shift instruction, Instruction with delay slot
● Execution Cycles
1 cycle
● Instruction Format
NZVC
CC - C
MSB LSB
10110010 Rj Ri