Figure 16. Ror #3; Figure 17. Rrx #3 - ST STM32H7 Series Programming Manual

Hide thumbs Also See for STM32H7 Series:
Table of Contents

Advertisement

The STM32 Cortex-M4 instruction set
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
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.
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
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.
64/262
Figure
16).

Figure 16. ROR #3

Figure

Figure 17. RRX #3

PM0214 Rev 9
17).
PM0214

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF