SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 122

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
11.13.8
11.13.8.1
11.13.8.2
11.13.8.3
11.13.8.4
11.13.8.5
122
122
REV
REV16
REVSH
REVHS
RBIT
SAM3X/A
SAM3X/A
REV, REV16, REVSH, and RBIT
Syntax
Operation
Restrictions
Condition flags
Examples
R3, R7
R0, R0
R0, R5
R3, R7
R7, R8
Reverse bytes and Reverse bits.
where:
op
cond
Rd
Rn
Use these instructions to change endianness of data:
REV
into big-endian data.
REV16
into big-endian data.
REVSH
Do not use SP and do not use PC
These instructions do not change the flags.
; Reverse byte order of value in R7 and write it to R3
; Reverse byte order of each 16-bit halfword in R0
; Reverse Signed Halfword
; Reverse with Higher or Same condition
; Reverse bit order of value in R8 and write the result to R7
op{cond} Rd, Rn
REV
REV16 Reverse byte order in each halfword independently.
REVSH Reverse byte order in the bottom halfword, and sign extend to 32 bits.
RBIT
16-bit signed big-endian data into 32-bit signed little-endian data
16-bit signed little-endian data into 32-bit signed big-endian data.
is any of:
Reverse byte order in a word.
Reverse the bit order in a 32-bit word.
is an optional condition code, see
is the destination register.
is the register holding the operand.
converts 32-bit big-endian data into little-endian data or 32-bit little-endian data
converts 16-bit big-endian data into little-endian data or 16-bit little-endian data
converts either:
.
“Conditional execution” on page
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
96.

Related parts for SAM3X8E