SAM3SD8B Atmel Corporation, SAM3SD8B Datasheet - Page 127

no-image

SAM3SD8B

Manufacturer Part Number
SAM3SD8B
Description
Manufacturer
Atmel Corporation
Datasheets
10.15.2
10.15.2.1
10.15.2.2
10.15.2.3
10.15.2.4
10.15.2.5
11090A–ATARM–10-Feb-12
11090A–ATARM–10-Feb-12
SBFX
UBFX
SBFX and UBFX
Syntax
Operation
Restrictions
Condition flags
Examples
R0, R1, #20, #4
R8, R11, #9, #10 ; Extract bit 9 to bit 18 (10 bits) from R11 and zero
Signed Bit Field Extract and Unsigned Bit Field Extract.
where:
cond
Rd
Rn
lsb
width
SBFX extracts a bitfield from one register, sign extends it to 32 bits, and writes the result to the
destination register.
UBFX extracts a bitfield from one register, zero extends it to 32 bits, and writes the result to the
destination register.
Do not use SP and do not use PC
These instructions do not affect the flags.
SBFX{cond} Rd, Rn, #lsb, #width
UBFX{cond} Rd, Rn, #lsb, #width
; Extract bit 20 to bit 23 (4 bits) from R1 and sign
; extend to 32 bits and then write the result to R0.
; extend to 32 bits and then write the result to R8
is an optional condition code, see
is the destination register.
is the source register.
is the position of the least significant bit of the bitfield.
lsb must be in the range 0 to 31.
is the width of the bitfield and must be in the range 1 to 32− lsb.
.
“Conditional execution” on page
SAM3S8/SD8
SAM3S8/SD8
84.
127
127

Related parts for SAM3SD8B