Sra3 – Renesas M32R-FPU User Manual

Page 142

Advertising
background image

3

3-104

M32R-FPU Software Manual (Rev.1.01)

SRA3

SRA3

shift instruction

Shift right arithmetic 3-operand

[Mnemonic]

SRA3 Rdest,Rsrc,#imm16

[Function]

Arithmetic right shift

Rdest = ( signed ) Rsrc >> ( imm16 & 31 ) ;

[Description]

SRA3 right arithmetic-shifts the contents of Rsrc into Rdest by the number specified by the 16-

bit immediate value, replicates the sign bit in Rsrc and puts the result in Rdest.

Only the five least significant bits are used.

The condition bit (C) is unchanged.

[EIT occurrence]

None

[Encoding]

dest

1001

src

1010

SRA3 Rdest,Rsrc,#imm16

imm16

INSTRUCTIONS

3.2 Instruction description

Advertising