131
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
11.6.5.22
USAD8
Unsigned Sum of Absolute Differences
Syntax
USAD8{cond}{Rd,} Rn, Rm
where:
Operation
The
USAD8
instruction:
1.
Subtracts each byte of the second operand register from the corresponding byte of the
first operand register.
2.
Adds the absolute values of the differences together.
3.
Writes the result to the destination register.
Restrictions
Do not use SP and do not use PC
.
Condition Flags
These instructions do not change the flags.
Examples
USAD8 R1, R4, R0
; Subtracts each byte in R0 from corresponding byte of R4
; adds the differences and writes to R1
USAD8
R0, R5
; Subtracts bytes of R5 from corresponding byte in R0,
; adds the differences and writes to R0.
cond
is an optional condition code, see
Rd
is the destination register.
Rn
is the first operand register.
Rm
is the second operand register.
Summary of Contents for SAM4S Series
Page 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Page 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...