SAM3N0C Atmel Corporation, SAM3N0C Datasheet - Page 83

no-image

SAM3N0C

Manufacturer Part Number
SAM3N0C
Description
Manufacturer
Atmel Corporation
Datasheets
10.11.4.4
10.11.4.5
10.11.5
11011A–ATARM–04-Oct-10
Address alignment
ROR
RRX
Rotate right by n bits moves the left-hand 32-n bits of the register Rm, to the right by n places,
into the right-hand 32-n bits of the result. And it 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 register Rm.
Figure 10-7. ROR #3
Rotate right with extend moves the bits of the register Rm 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 register Rm.
Figure 10-8. RRX
An aligned access is an operation where a word-aligned address is used for a word, dual word,
or multiple word access, or where a halfword-aligned address is used for a halfword access.
Byte accesses are always aligned.
The Cortex-M3 processor supports unaligned access only for the following instructions:
• If n is 32, then the value of the result is same as the value in Rm, and if the carry flag is
• ROR with shift length, n, more than 32 is the same as ROR with shift length n-32.
• LDR, LDRT
• LDRH, LDRHT
• LDRSH, LDRSHT
• STR, STRT
• STRH, STRHT
updated, it is updated to bit[31] of Rm.
31
31 30
...
Figure
...
Figure 10-8 on page
10-7.
83.
5
4
3
...
2
1 0
1 0
Carry
Carry
SAM3N
Flag
Flag
83

Related parts for SAM3N0C