ST10 FAMILY PROGRAMMING MANUAL
146/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
CoMACMu
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 18 rrrr:rqqq
4
CoMACMu-
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 28 rrrr:rqqq
4
CoMACMu
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
Yes
93 Xm 19 rrrr:rqqq
4
CoMACMRu
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 38 rrrr:rqqq
4
CoMACMRu
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
Yes
93 Xm 39 rrrr:rqqq
4
CoMACMu
[IDX1+QX0], [R10+QR1], rnd ; (ACC)<--(ACC)+ ((IDX1)) * ((R10))+ rnd
; (R10) <-- (R10) + (QR1)
; ( ((IDX1) - (QX0)) ) <-- ((IDX1))
; (IDX1) <-- (IDX1) + (QX0)
Repeat 3 times CoMACMu
CoMACMu
[IDX0 - QX0], [R8+QR0]
; (ACC) <-- (ACC) + ((IDX0))*((R8))
; (R8) <-- (R8) + (QR0)
; ( ((IDX0) + (QX0)) ) <-- ((IDX0))
; (IDX0) <-- (IDX0) - (QX0)
Repeat MRW times CoMACMRu
CoMACMRu
[IDX1+QX1], [R7 - QR0]
; (ACC) <-- ((IDX1))*((R7)) - (ACC)
; (R7) <-- (R7) - (QR0)
; ( ((IDX1) - (QX1)) ) <-- ((IDX1))
; (IDX1) <-- (IDX1) + (QX1)
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...