ST10 FAMILY PROGRAMMING MANUAL
152/172
CoMIN
Minimum
Group
Compare Instructions
Syntax
CoMIN
op1, op2
Operation
(tmp) <--
(op2)\(op1)
(ACC)
<-- min( (ACC), (tmp) )
Data Types
DOUBLE WORD
Result
40-bit signed value
Description
Compares a signed 40-bit operand against the ACC register content. The 40-bit operand results from the
concatenation of the two source operands op1 (LSW) and op2 (MSW) which is then sign-extended. If the
contents of the ACC register is greater than the 40-bit operand, then the ACC register is loaded with it.
Otherwise the ACC register remains unchanged. The MS bit of the MCW register does not affect the
result. This instruction is repeatable with indirect addressing modes.
MAC Flags
Addressing Modes
Examples
N
Z
C
SV
E
SL
*
*
0
-
*
*
N
Set if the most significant bit of the result is set. Cleared otherwise.
Z
Set if the result equals zero. Cleared otherwise.
C
Cleared always.
SV
Not affected.
E
Set if the MAE is used. Cleared otherwise.
SL
Set if the contents of the ACC register is changed. Not affected otherwise.
Mnemonic
Rep
Format
Bytes
CoMIN
Rw
n
, Rw
m
No
A3 nm 7A 00
4
CoMIN
[IDX
i
⊗
], [Rw
m
⊗]
Yes
93 Xm 7A rrrr:rqqq
4
CoMIN
Rw
n
, [Rw
m
⊗]
Yes
83 nm 7A rrrr:rqqq
4
CoMIN
[IDX1+QX0], [R11+QR1]
; (ACC)<-- min( (ACC), ((R11))\((IDX1)) )
; (R11) <-- (R11) + (QR1)
; (IDX1) <-- (IDX1) + (QX0)
CoMIN
R1, R10
; (ACC) <-- min( (ACC), (R10)\(R1) )
Repeat 23 times CoMIN
CoMIN
R5, [R6 - QR0]
; (ACC) <-- min( (ACC), ((R6))\(R5)) )
; (R6) <-- (R6) - (QR0)
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...