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