ST10 FAMILY PROGRAMMING MANUAL
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
CoMACMu
[IDX
CoMACMu-
[IDX
CoMACMu
[IDX
CoMACMRu
[IDX
CoMACMRu
[IDX
Examples
CoMACMu
[IDX1+QX0], [R10+QR1], rnd ; (ACC)<--(ACC)+ ((IDX1)) * ((R10))+ rnd
Repeat 3 times CoMACMu
CoMACMu
[IDX0 - QX0], [R8+QR0]
Repeat MRW times CoMACMRu
CoMACMRu
[IDX1+QX1], [R7 - QR0]
146/172
Z
C
*
*
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗], rnd
i
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗], rnd
i
m
SV
*
Rep
Format
Yes
93 Xm 18 rrrr:rqqq
Yes
93 Xm 28 rrrr:rqqq
Yes
93 Xm 19 rrrr:rqqq
Yes
93 Xm 38 rrrr:rqqq
Yes
93 Xm 39 rrrr:rqqq
; (R10) <-- (R10) + (QR1)
; ( ((IDX1) - (QX0)) ) <-- ((IDX1))
; (IDX1) <-- (IDX1) + (QX0)
; (ACC) <-- (ACC) + ((IDX0))*((R8))
; (R8) <-- (R8) + (QR0)
; ( ((IDX0) + (QX0)) ) <-- ((IDX0))
; (IDX0) <-- (IDX0) - (QX0)
; (ACC) <-- ((IDX1))*((R7)) - (ACC)
; (R7) <-- (R7) - (QR0)
; ( ((IDX1) - (QX1)) ) <-- ((IDX1))
; (IDX1) <-- (IDX1) + (QX1)
E
SL
*
*
Bytes
4
4
4
4
4
Need help?
Do you have a question about the ST10 Series and is the answer not in the manual?
Questions and answers