ST10 FAMILY PROGRAMMING MANUAL
142/172
CoMACM(R/-)
Multiply-Accumulate
Parallel Data Move & Optional Round
Group
Multiply/Multiply-Accumulate Instructions
Syntax
CoMACM
op1, op2
Operation
IF (MP = 1) THEN
(tmp)
<-- ((op1))*((op2)) << 1
(ACC)
<-- (ACC) + (tmp)
ELSE
(tmp) <--
((op1))*((op2))
(ACC)
<-- (ACC) + (tmp)
END IF
((IDX
i
(-
⊗
))) <--
((IDX
i
))
Syntax
CoMACM
op1, op2, rnd
Operation
IF (MP = 1) THEN
(tmp)
<-- ((op1))*((op2)) << 1
(ACC)
<-- (ACC) + (tmp) + 00 0000 8000
h
ELSE
(tmp) <--
((op1))*((op2))
(ACC)
<-- (ACC) + (tmp) + 00 0000 8000
h
END IF
(MAL) <--
0
((IDX
i
(-
⊗
))) ¨ ((IDX
i
))
Syntax
CoMACM- op1,
op2
Operation
IF (MP = 1) THEN
(tmp)
<-- ((op1))*((op2)) << 1
(ACC)
<-- (ACC) - (tmp)
ELSE
(tmp) <--
((op1))*((op2))
(ACC)
<-- (ACC) - (tmp)
END IF
((IDX
i
(-
⊗
))) <--
((IDX
i
))
Syntax
CoMACMR op1,
op2
Operation
IF (MP = 1) THEN
(tmp)
<-- ((op1))*((op2)) << 1
(ACC)
<-- (tmp) - (ACC)
ELSE
(tmp) <--
((op1))*((op2))
(ACC)
<-- (tmp) - (ACC)
END IF
((IDX
i
(-
⊗
))) <--
((IDX
i
))
Syntax
CoMACMR
op1, op2, rnd
Operation
IF (MP = 1) THEN
(tmp)
<-- ((op1))*((op2)) << 1
(ACC)
<-- (tmp) - (ACC) + 00 0000 8000
h
ELSE
(tmp) <--
((op1))*((op2))
(ACC)
<-- (tmp) - (ACC) + 00 0000 8000
h
END IF
(MAL) <--
0
((IDX
i
(-
⊗
))) <--
((IDX
i
))
Data Types
DOUBLE WORD
Result
40-bit signed value
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...