SAM3N0C Atmel Corporation, SAM3N0C Datasheet - Page 107

no-image

SAM3N0C

Manufacturer Part Number
SAM3N0C
Description
Manufacturer
Atmel Corporation
Datasheets
10.13.1.6
10.13.1.7
The example below shows two instructions that add a 64-bit integer contained in R2 and R3 to another 64-bit integer con-
tained in R0 and R1, and place the result in R4 and R5.
10.13.1.8
Multiword values do not have to use consecutive registers. The example below shows instructions that subtract a 96-bit
integer contained in R9, R1, and R11 from another contained in R6, R2, and R8. The example stores the result in R6, R9,
and R2.
11011A–ATARM–04-Oct-10
ADDS
ADC
SUBS
SBCS
SBC
Multiword arithmetic examples
64-bit addition
96-bit subtraction
R4, R0, R2
R5, R1, R3
R6, R6, R9
R9, R2, R1
R2, R8, R11
; add the least significant words
; add the most significant words with carry
; subtract the least significant words
; subtract the middle words with carry
; subtract the most significant words with carry
SAM3N
107

Related parts for SAM3N0C