SAM3A8C Atmel Corporation, SAM3A8C Datasheet - Page 133

no-image

SAM3A8C

Manufacturer Part Number
SAM3A8C
Description
Manufacturer
Atmel Corporation
Datasheets
11.16.3
11.16.3.1
11.16.3.2
11.16.3.3
11.16.3.4
11.16.3.5
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
SXTH
UXTB
SXT and UXT
Syntax
Operation
Restrictions
Condition flags
Examples
R4, R6, ROR #16
R3, R10
Sign extend and Zero extend.
where:
extend
cond
Rd
Rm
ROR #n
These instructions do the following:
Do not use SP and do not use PC.
These instructions do not affect the flags.
• Rotate the value from Rm right by 0, 8, 16 or 24 bits.
• Extract bits from the resulting value:
SXTextend{cond} {Rd,} Rm {, ROR #n}
UXTextend{cond} {Rd}, Rm {, ROR #n}
B
H
ROR #8 Value from Rm is rotated right 8 bits.
ROR #16 Value from Rm is rotated right 16 bits.
ROR #24 Value from Rm is rotated right 24 bits.
SXTB extracts bits[7:0] and sign extends to 32 bits.
UXTB extracts bits[7:0] and zero extends to 32 bits.
SXTH extracts bits[15:0] and sign extends to 32 bits.
UXTH extracts bits[15:0] and zero extends to 32 bits.
; Rotate R6 right by 16 bits, then obtain the lower
; halfword of the result and then sign extend to
; 32 bits and write the result to R4.
; Extract lowest byte of the value in R10 and zero
; extend it, and write the result to R3
is one of:
Extends an 8-bit value to a 32-bit value.
Extends a 16-bit value to a 32-bit value.
is an optional condition code, see
is the destination register.
is the register holding the value to extend.
is one of:
If ROR #n is omitted, no rotation is performed.
“Conditional execution” on page
SAM3X/A
SAM3X/A
96.
133
133

Related parts for SAM3A8C