Atmel Evaluation Kit for the SAM4E Series of Flash Microcontrollers ATSAM4E-EK ATSAM4E-EK Scheda Tecnica

Codici prodotto
ATSAM4E-EK
Pagina di 1506
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
158
Examples
QADD16
R7, R4, R2  ; Adds halfwords of R4 with corresponding halfword of
; R2, saturates to 16 bits and writes to
; corresponding halfword of R7
QADD8    R3, R1, R6
; Adds bytes of R1 to the corresponding bytes of R6,
 ; saturates to 8 bits and writes to corresponding
 ; byte of R3
QSUB16   R4, R2, R3
; Subtracts halfwords of R3 from corresponding
 ; halfword of R2, saturates to 16 bits, writes to
 ; corresponding halfword of R4
QSUB8
  R4, R2, R5
; Subtracts bytes of R5 from the corresponding byte
 ; in R2, saturates to 8 bits, writes to corresponding
 ; byte of R4.