STMicroelectronics ST10 Series Programming Manual page 137

Table of Contents

Advertisement

MAC Flags
N
*
N
Set if the most significant bit of the result is set. Cleared otherwise.
Z
Set if the result equals zero. Cleared otherwise.
C
Set if a carry or borrow is generated. Cleared otherwise.
SV
Set if an arithmetic overflow occurred. Not affected otherwise.
E
Set if the MAE is used. Cleared otherwise.
SL
Set if the contents of the ACC is automatically saturated. Not affected otherwise.
Addressing Modes
Mnemonic
CoMAC
Rw
CoMAC-
Rw
CoMAC
Rw
CoMACR
Rw
CoMACR
Rw
CoMAC
[IDX
CoMAC-
[IDX
CoMAC
[IDX
CoMACR
[IDX
CoMACR
[IDX
CoMAC
Rw
CoMAC-
Rw
CoMAC
Rw
CoMACR
Rw
CoMACR
Rw
Examples
CoMAC
R3, R4, rnd
CoMAC-
R2, [R6+]
CoMAC
[IDX0+QX0], [R11+QR0]
Repeat 3 times CoMAC
CoMAC
[IDX1 - QX1], [R9+QR1] ; (ACC) <-- (ACC) + ((IDX1))*((R9))
Repeat MRW times CoMAC
CoMAC - R3,
[R7 - QR0]
CoMACR
[IDX1], [R4+], rnd
Z
C
*
, Rw
n
m
, Rw
n
m
, Rw
, rnd
n
m
, Rw
n
m
, Rw
, rnd
n
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗], rnd
i
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗], rnd
i
m
⊗]
, [Rw
n
m
⊗]
, [Rw
n
m
⊗], rnd
, [Rw
n
m
⊗]
, [Rw
n
m
⊗], rnd
, [Rw
n
m
ST10 FAMILY PROGRAMMING MANUAL
SV
*
*
Rep
Format
No
A3 nm D0 00
No
A3 nm E0 00
No
A3 nm D1 00
No
A3 nm F0 00
No
A3 nm F1 00
Yes
93 Xm D0 rrrr:rqqq
Yes
93 Xm E0 rrrr:rqqq
Yes
93 Xm D1 rrrr:rqqq
Yes
93 Xm F0 rrrr:rqqq
Yes
93 Xm F1 rrrr:rqqq
Yes
83 nm D0 rrrr:rqqq
Yes
83 nm E0 rrrr:rqqq
Yes
83 nm D1rrrr:rqqq
Yes
83 nm F0 rrrr:rqqq
Yes
83 nm F1 rrrr:rqqq
; (ACC) <-- (ACC)
; (ACC) <-- (ACC) - (R2)*((R6))
; (R6) <-- (R6) + 2
; (ACC) <-- (ACC) + ((IDX0))*((R11))
; (R11) <-- (R11) + (QR0)
; (IDX0) <-- (IDX0) + (QX0)
; (R9) <-- (R9) + (QR1)
; (IDX1) <-- (IDX1) - (QX1)
; (ACC) <-- (ACC) - (R3)*((R7))
; (R7) <-- (R7) - (QR0)
; (ACC) <-- ((IDX1))*((R4)) - (ACC) + rnd
; (R4) <-- (R4) + 2
E
SL
*
*
Bytes
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
+ (R3)*(R4) + rnd
135/172

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST10 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents