
Multiply-accumulate unit (MAC)
UM0404
94/564
DocID13284 Rev 2
4.4
MAC instruction set summary
The following table gives an overview of the MAC instruction set. All the mnemonics are
listed with the addressing modes that can be used with each instruction.
For each combination of mnemonic and addressing mode this table indicates if it is
repeatable or not.
For full details of the MAC instruction set, refer to the
ST10 Family Programming Manual
.
Table 13. MAC register address in CoReg addressing mode
Registers Description
Address
MSW
MAC-Unit Status Word
00000b
MAH
MAC-Unit Accumulator High
00001b
MAS
“limited” MAH /signed
00010b
MAL
MAC-Unit Accumulator Low
00100b
MCW
MAC-Unit Control Word
00101b
MRW
MAC-Unit Repeat Word
00110b
Table 14. MAC instruction set summary
Mnemonic
Addressing modes
Repeatable
CoMUL(u,s,-,rnd)
Rw
n
, Rw
m
[IDX
i
⊗
], [Rw
m
⊗]
Rw
n
, [Rw
m
⊗]
No
CoMAC(u, s, -, rnd)
CoMACR( u, s, rnd)
Rw
n
, Rw
m
[IDX
i
⊗
], [Rw
m
⊗]
Rw
n
, [Rw
m
⊗]
No
Yes
Yes
CoMACM (u, s, -, rnd)
CoMACMR(u, s, rnd)
[IDX
i
⊗
], [Rw
m
⊗]
Yes
CoNOP
[Rw
m
⊗]
[IDX
i
⊗
]
[IDX
i
⊗
], [Rw
m
⊗]
Yes
CoNEG
CoNEG, rnd
CoRND
-
No
CoSTORE
Rw
n
, CoReg
[Rw
n
⊗]
, Coreg
No
Yes
CoMOV
[IDX
i
⊗
], [Rw
m
⊗]
Yes
CoADD(2)
CoSUB(2)
CoSUB(2)R
CoMax
CoMin
Rw
n
, Rw
m
[IDX
i
⊗
], [Rw
m
⊗]
Rw
n
, [Rw
m
⊗]
No
Yes
Yes