English
Language : 

C166SV2 Datasheet, PDF (383/438 Pages) Infineon Technologies AG – 16-Bit Microcontroller
User Manual
C166S V2
Detailed Instruction Description
CoMACu-
Group
Unsigned Multiply-Accumulate
Multiply/Multiply-Accumulate Instructions
CoMACu-
Syntax
CoMACu- op1, op2
Source Operand(s)
op1, op2 → WORD
Destination Operand(s) ACC → 40-bit signed value
Operation
(tmp) ← (op1) * (op2)
(ACC) ← (ACC) - (tmp)
Description
Multiplies the two unsigned 16-bit source operands op1 and op2. The resulting
unsigned 32-bit product is first zero-extended and then subtracted from the 40-bit ACC
register contents before being stored in the 40-bit ACC register.
MAC Flags
MV
MSL
ME
MSV
MC
MZ
MN
Sat.
*
*
*
*
*
*
*
yes
MV
MSL
ME
MSV
MC
MZ
MN
Set if an arithmetic underflow occurred, i.e. the result cannot be
represented in the 40-bit data type. Cleared otherwise.
Set if the contents of ACC is automatically saturated. Not affected
otherwise.
Set if the MAE is used. Cleared otherwise.
Set if an arithmetic underflow occurred. Not affected otherwise.
Set if a borrow is generated. Cleared otherwise.
Set if result equals zero. Cleared otherwise.
Set if the most significant bit of the result is set. Cleared otherwise.
Encoding
Mnemonic
CoMACu-
CoMACu-
CoMACu-
Rwn , Rwm
Rwn , [Rwm*]
[IDXi*] , [Rwm*]
Format
A3 nm 20 rrr0:0000
83 nm 20 rrr0:0qqq
93 Xm 20 rrr0:0qqq
Bytes
4
4
4
User Manual
8-383
V 1.7, 2001-01