asr

Arithmetic Shift Right (A32)

ASR{S}<c> <Rd>, <Rm>, <Rs>

Arithmetic right shift (sign-extending).

Details

The Arithmetic Shift Right instruction arithmetic right shift (sign-extending).

Pseudocode Operation

Rd ← Rm shifted by amount

Example

ASR r0, r2, r6

Encoding

Binary Layout
cond
00
0
1101
S
0000
Rd
Rs
0
101
Rm
 
Format Data Proc
Opcode 0x01A00050
Extension A32 (Base)

Operands

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