Atmel SAM4S Xplained Pro Starter and Evaluation Kit ATSAM4S-XPRO ATSAM4S-XPRO Data Sheet
Product codes
ATSAM4S-XPRO
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
174
3. Adds the signed or zero extended value to the word or corresponding halfword of Rn and writes the result in
Rd
.
Restrictions
Do not use SP and do not use PC.
Condition Flags
These instructions do not affect the flags.
Examples
Do not use SP and do not use PC.
Condition Flags
These instructions do not affect the flags.
Examples
SXTAH
R4, R8, R6, ROR #16 ; Rotates R6 right by 16 bits, obtains bottom
; halfword, sign extends to 32 bits, adds
; R8,and writes to R4
UXTAB
R3, R4, R10
; Extracts bottom byte of R10 and zero extends
; to 32 bits, adds R4, and writes to R3.