EasyManuals Logo

ST STM32F4 Series User Manual

ST STM32F4 Series
262 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #64 background imageLoading...
Page #64 background image
The STM32 Cortex-M4 instruction set PM0214
64/262 PM0214 Rev 9
ROR
Rotate right by
n
bits moves the left-hand
32
-
n
bits of the
Rm
register to the right by
n
places,
into the right-hand
32
-
n
bits of the result. It also moves the right-hand
n
bits of the register
into the left-hand
n
bits of the result (see Figure 16).
When the instruction is RORS or when ROR
#n
is used in
operand2
with the instructions
MOVS, MVNS, ANDS, ORRS, ORNS, EORS, BICS, TEQ or TST, the carry flag is updated
to the last bit rotation, bit[
n
-1], of the
Rm
register.
Note: 1 If
n
is 32, then the value of the result is same as the value in
Rm
, and if the carry flag is
updated, it is updated to bit[31] of
Rm
.
2
ROR
with shift length,
n
, more than 32 is the same as
ROR
with shift length
n
-32.
Figure 16. ROR #3
RRX
Rotate right with extend moves the bits of the
Rm
register to the right by one bit. And it
copies the carry flag into bit[31] of the result (see Figure 17).
When the instruction is RRXS or when RRX is used in operand2 with the instructions
MOVS, MVNS, ANDS, ORRS, ORNS, EORS, BICS, TEQ or TST, the carry flag is updated
to bit[0] of the
Rm
register.
Figure 17. RRX #3
06Y9
&DUU\
)ODJ
     
06Y9

&DUU\
)ODJ
 

Table of Contents

Other manuals for ST STM32F4 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F4 Series and is the answer not in the manual?

ST STM32F4 Series Specifications

General IconGeneral
BrandST
ModelSTM32F4 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals