ST10 FAMILY PROGRAMMING MANUAL
135/172
MAC Flags
Addressing Modes
Examples
N
Z
C
SV
E
SL
*
*
*
*
*
*
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.
Mnemonic
Rep
Format
Bytes
CoMAC
Rw
n
, Rw
m
No
A3 nm D0 00
4
CoMAC-
Rw
n
, Rw
m
No
A3 nm E0 00
4
CoMAC
Rw
n
, Rw
m
, rnd
No
A3 nm D1 00
4
CoMACR
Rw
n
, Rw
m
No
A3 nm F0 00
4
CoMACR
Rw
n
, Rw
m
, rnd
No
A3 nm F1 00
4
CoMAC
[IDX
i
⊗
], [Rw
m
⊗
]
Yes
93 Xm D0 rrrr:rqqq
4
CoMAC-
[IDX
i
⊗
], [Rw
m
⊗
]
Yes
93 Xm E0 rrrr:rqqq
4
CoMAC
[IDX
i
⊗
], [Rw
m
⊗
], rnd
Yes
93 Xm D1 rrrr:rqqq
4
CoMACR
[IDX
i
⊗
], [Rw
m
⊗
]
Yes
93 Xm F0 rrrr:rqqq
4
CoMACR
[IDX
i
⊗
], [Rw
m
⊗
], rnd
Yes
93 Xm F1 rrrr:rqqq
4
CoMAC
Rw
n
, [Rw
m
⊗
]
Yes
83 nm D0 rrrr:rqqq
4
CoMAC-
Rw
n
, [Rw
m
⊗
]
Yes
83 nm E0 rrrr:rqqq
4
CoMAC
Rw
n
, [Rw
m
⊗
], rnd
Yes
83 nm D1rrrr:rqqq
4
CoMACR
Rw
n
, [Rw
m
⊗
]
Yes
83 nm F0 rrrr:rqqq
4
CoMACR
Rw
n
, [Rw
m
⊗
], rnd
Yes
83 nm F1 rrrr:rqqq
4
CoMAC
R3, R4, rnd
; (ACC) <-- (ACC) + (R3)*(R4) + rnd
CoMAC-
R2, [R6+]
; (ACC) <-- (ACC) - (R2)*((R6))
; (R6) <-- (R6) + 2
CoMAC
[IDX0+QX0], [R11+QR0]
; (ACC) <-- (ACC) + ((IDX0))*((R11))
; (R11) <-- (R11) + (QR0)
; (IDX0) <-- (IDX0) + (QX0)
Repeat 3 times CoMAC
CoMAC
[IDX1 - QX1], [R9+QR1] ; (ACC) <-- (ACC) + ((IDX1))*((R9))
; (R9) <-- (R9) + (QR1)
; (IDX1) <-- (IDX1) - (QX1)
Repeat MRW times CoMAC
CoMAC - R3,
[R7 - QR0]
; (ACC) <-- (ACC) - (R3)*((R7))
; (R7) <-- (R7) - (QR0)
CoMACR
[IDX1], [R4+], rnd
; (ACC) <-- ((IDX1))*((R4)) - (ACC) + rnd
; (R4) <-- (R4) + 2
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...