SAM3A8C Atmel Corporation, SAM3A8C Datasheet - Page 132

no-image

SAM3A8C

Manufacturer Part Number
SAM3A8C
Description
Manufacturer
Atmel Corporation
Datasheets
11.16.2
11.16.2.1
11.16.2.2
11.16.2.3
11.16.2.4
11.16.2.5
132
132
SBFX
UBFX
SAM3X/A
SAM3X/A
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
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
96.

Related parts for SAM3A8C