ST10 FAMILY PROGRAMMING MANUAL
156/172
CoMULu(-)
Unsigned Multiply & Optional Round
Group
Multiply/Multiply-Accumulate Instructions
Syntax
CoMULu
op1, op2
Operation
(ACC)
<-- (op1) * (op2)
Syntax
CoMULu-
op1, op2
Operation
(ACC)
<-- - ((op1) * (op2))
Syntax
CoMULu
op1, op2, rnd
Operation
(ACC)
<-- (op1) * (op2) + 00 0000 8000
h
(MAL) <--
0
Data Types
DOUBLE WORD
Result
32-bit signed value
Description
Multiply the two unsigned 16-bit source operands “op1” and “op2”. The unsigned 32-bit product is first
zero-extended, and then, it is optionally either negated or rounded before being stored in the 40-bit ACC
register. The result is never affected by the MP mode flag of the MCW register. The “-” option is used to
negate the specified product while the “rnd” option is used to round the product using two’s complement
rounding. The default sign option is “+” and the default round option is “no round”. When “rnd” option is
used, MAL register is automatically cleared. “rnd” and “-” are exclusive. This non-repeatable instruction
allows up to two parallel memory reads.
MAC Flags
Addressing Modes
N
Z
C
SV
E
SL
*
*
0
-
0
-
N
Set if the most significant bit of the result is set. Cleared otherwise.
Z
Set if the result equals zero. Cleared otherwise.
C
Always cleared.
SV
Not affected.
E
Always cleared.
SL
Not affected.
Mnemonic
Rep
Format
Bytes
CoMULu
Rw
n
, Rw
m
No
A3 nm 00 00
4
CoMULu-
Rw
n
, Rw
m
No
A3 nm 08 00
4
CoMULu
Rw
n
, Rw
m
, rnd
No
A3 nm 01 00
4
CoMULu
[IDX
i
⊗
], [Rw
m
⊗]
No
93 Xm 00 0:0qqq
4
CoMULu-
[IDX
i
⊗
], [Rw
m
⊗]
No
93 Xm 08 0:0qqq
4
CoMULu
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
No
93 Xm 01 0:0qqq
4
CoMULu
Rw
n
, [Rw
m
⊗]
No
83 nm 00 0:0qqq
4
CoMULu-
Rw
n
, [Rw
m
⊗]
No
83 nm 08 0:0qqq
4
CoMULu
Rw
n
, [Rw
m
⊗]
, rnd
No
83 nm 01 0:0qqq
4
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...