Unsigned Sum of Absolute Differences, and Accumulate unsigned
sum of absolute differences.
Syntax
USAD8{cond} {Rd}, Rn, Rm
USADA8{cond} Rd, Rn, Rm, Ra
where:
cond
is an optional condition code.
Rd
is the destination register.
Rn
is the register holding the first operand.
Rm
is the register holding the second operand.
Ra
is the register holding the accumulate operand.
Operation
The USAD8 instruction finds the four differences
between the unsigned values in corresponding bytes of Rn and Rm.
It adds the absolute values of the four differences, and saves the
result to Rd.
The USADA8 instruction adds the absolute values
of the four differences to the value in Ra,
and saves the result to Rd.
Register restrictions
You cannot use PC for any register.
You can use SP in ARM instructions but these are deprecated
in ARMv6T2 and above. You cannot use SP in Thumb instructions.
Condition flags
These instructions do not alter any flags.
Architectures
These ARM instructions are available in ARMv6 and above.
These 32-bit Thumb instructions are available in ARMv6T2 and
above. For the ARMv7-M architecture, they are only available in
an ARMv7E-M implementation.
There are no 16-bit Thumb versions of these instructions.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.