Renesas M32R-FPU Manual Do Utilizador

Página de 192
3
3-103
M32R-FPU Software Manual (Rev.1.01)
SRA
SRA
shift instruction
Shift right arithmetic
[Mnemonic]
SRA  Rdest,Rsrc
[Function]
Arithmetic right shift
Rdest = ( signed ) Rdest  >>  ( Rsrc & 31 ) ;
[Description]
SRA right arithmetic-shifts the contents of Rdest by the number specified by Rsrc, replicates
the sign bit in the MSB of Rdest 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
0001
src
0010
SRA  Rdest,Rsrc
INSTRUCTIONS
3.2 Instruction description