rrx

Rotate Right with Extend (A32)

RRX{S}<c> <Rd>, <Rm>

Shifts register right by 1, inserting Carry flag into MSB.

Details

The Rotate Right with Extend instruction shifts register right by 1, inserting Carry flag into MSB.

Pseudocode Operation

Rd ← Rm shifted by amount

Example

RRX r0, r2

Encoding

Binary Layout
cond
00
0
1101
S
0000
Rd
0000
0110
Rm
 
Format Data Proc
Opcode 0x01A00060
Extension A32 (Base)

Operands

  • Rd
    Destination general-purpose register
  • Rm
    Second source / offset general-purpose register