6.92.1 Description
Shifts all bits in Rd one place to the right. The C flag is shifted into bit 7 of Rd. Bit 0 is shifted into the C flag. This operation, combined with ASR, effectively divides multi-byte signed values by two. Combined with LSR, it effectively divides multi-byte unsigned values by two. The Carry flag can be used to round the result.
Operation:
→ | |||||||||||||
C | → | b7 - - - - - - - - - - - - - - - - - - b0 | → | C | |||||||||
Syntax: |
Operands: |
Program Counter: | |
(i) |
ROR Rd |
0 ≤ d ≤ 31 |
PC ← PC + 1 |
16-bit Opcode:
1001 | 010d | dddd | 0111 |