![Atmel SAM4S Series Скачать руководство пользователя страница 143](http://html1.mh-extra.com/html/atmel/sam4s-series/sam4s-series_preliminary-data-sheet_3003408143.webp)
143
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
11.6.6.7
SMMLA and SMMLS
Signed Most Significant Word Multiply Accumulate and Signed Most Significant Word Multiply
Subtract
Syntax
op{R}{cond} Rd, Rn, Rm, Ra
where:
Operation
The
SMMLA
instruction interprets the values from
Rn
and
Rm
as signed 32-bit words.
The
SMMLA
instruction:
• Multiplies the values in
Rn
and
Rm
.
• Optionally rounds the result by adding
0x80000000
.
• Extracts the most significant 32 bits of the result.
• Adds the value of
Ra
to the signed extracted value.
• Writes the result of the addition in
Rd
.
The
SMMLS
instruction interprets the values from
Rn
and
Rm
as signed 32-bit words.
The
SMMLS
instruction:
• Multiplies the values in
Rn
and
Rm
.
• Optionally rounds the result by adding
0x80000000
.
• Extracts the most significant 32 bits of the result.
• Subtracts the extracted value of the result from the value in
Ra
.
• Writes the result of the subtraction in
Rd
.
Restrictions
In these instructions:
• Do not use SP and do not use PC.
Condition Flags
These instructions do not affect the condition code flags.
op
is one of:
SMMLA
Signed Most Significant Word Multiply Accumulate.
SMMLS
Signed Most Significant Word Multiply Subtract.
R
is a rounding error flag. If
R
is specified, the result is rounded instead of being truncated.
In this case the constant
0x80000000
is added to the product before the high word is
extracted.
cond
is an optional condition code, see
Rd
is the destination register.
Rn, Rm
are registers holding the first and second multiply operands.
Ra
is the register holding the accumulate value.
Содержание SAM4S Series
Страница 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Страница 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Страница 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Страница 1142: ...1142 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 3 100 ball VFBGA Package Drawing ...
Страница 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Страница 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...