SAM3N00A Atmel Corporation, SAM3N00A Datasheet - Page 128

no-image

SAM3N00A

Manufacturer Part Number
SAM3N00A
Description
Manufacturer
Atmel Corporation
Datasheets
10.16.3
10.16.3.1
10.16.3.2
10.16.3.3
10.16.3.4
10.16.3.5
128
SXTH
UXTB
SAM3N
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
11011A–ATARM–04-Oct-10
84.

Related parts for SAM3N00A