ST10 FAMILY PROGRAMMING MANUAL
150/172
MAC Flags
Addressing Modes
Example
N
Z
C
SV
E
SL
*
*
*
*
*
*
N
Set if the m.s.b. 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
CoMACMsu
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 58 rrrr:rqqq
4
CoMACMsu-
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 68 rrrr:rqqq
4
CoMACMsu
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
Yes
93 Xm 59 rrrr:rqqq
4
CoMACMRsu
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 78 rrrr:rqqq
4
CoMACMRsu
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
Yes
93 Xm 79 rrrr:rqqq
4
CoMACMsu
[IDX1+QX0], [R10+QR1], rnd
; (ACC)<-- (ACC)+((IDX1))*((R10)) + rnd
; (R10) <-- (R10) + (QR1)
; ( ((IDX1) -(QX0)) ) <-- ((IDX1))
; (IDX1) <-- (IDX1) + (QX0)
Repeat 3 times CoMACMsu
CoMACMsu
[IDX0 - QX0], [R8+QR0], rnd
; (ACC) <-- (ACC) + ((IDX0))*((R8))
; (R8) <-- (R8) + (QR0)
; ( ((IDX0) + (QX0)) )<-- ((IDX0))
; (IDX0) <-- (IDX0) - (QX0)
Repeat MRW times CoMACMRsu
CoMACMRsu
[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...