ST10 FAMILY PROGRAMMING MANUAL
148/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
CoMACMus
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 98 rrrr:rqqq
4
CoMACMus-
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm A8 rrrr:rqqq
4
CoMACMus
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
Yes
93 Xm 99 rrrr:rqqq
4
CoMACMRus
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm B8 rrrr:rqqq
4
CoMACMRus
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
Yes
93 Xm B9 rrrr:rqqq
4
CoMACMus
[IDX1+QX0], [R10+QR1], rnd ; (ACC)<--(ACC) + ((IDX1))*((R10)) +rnd
; (R10) <-- (R10) + (QR1)
; ( ((IDX1) - (QX0)) )<-- ((IDX1))
; (IDX1) <-- (IDX1) + (QX0)
Repeat 3 times CoMACMus
CoMACMus
[IDX0 - QX0], [R8+QR0]
; (ACC) <-- (ACC) + ((IDX0))*((R8))
; (R8) <-- (R8) + (QR0)
; ( ((IDX0) + (QX0)) ) <-- ((IDX0))
; (IDX0) <-- (IDX0) - (QX0)
Repeat MRW times CoMACMRus
CoMACMRus [IDX1+QX1], [R7 - QR0], rnd ; (ACC)<--((IDX1))*((R7))-(ACC)+rnd
; (R7) <-- (R7) - (QR0)
; ( ((IDX1) - (QX1)) )<-- ((IDX1))
; (IDX1) <-- (IDX1) + (QX1)
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...