Cmpinci, Cmpinco; Table 6-7. Condition Code Settings - Intel i960 Jx Developer's Manual

Microprocessor
Table of Contents

Advertisement

INSTRUCTION SET REFERENCE
6.2.19

cmpinci, cmpinco

Mnemonic:
cmpinci
cmpinco
Format:
cmpinc
Description:
Compares src2 and src1 values and sets the condition code according to
comparison results. src2 is then incremented by one and result is stored in
dst. The following table shows condition code settings for the three possible
comparison results.
Condition Code
These instructions are intended for use in ending iterative loops. For
cmpinci
maximum integer values.
if (src1 < src2)
Action:
AC.cc = 100
else if (src1 == src2)
AC.cc = 010
else
AC.cc = 001
dst = src2 + 1;
Faults:
STANDARD
Example:
cmpinco r8, g2, g9 # Compares the values in g2
Opcode:
cmpinci
cmpinco
See Also:
cmpdeco, cmpo, cmpi, cmpdeci, COMPARE AND BRANCH<cc>
Sets the condition code in the arithmetic controls.
Side Effects:
6-32
Compare and Increment Integer
Compare and Increment Ordinal
*
src1,
src2,
reg/lit
reg/lit

Table 6-7. Condition Code Settings

Comparison
100
2
010
2
001
2
, integer overflow is ignored to allow looping up through the
;
2
;
2
;
2
# Overflow suppressed for cmpinci.
Refer to
# and r8 and sets AC.cc to
# indicate the result:
# g9 = g2 + 1
5A5H
REG
5A4H
REG
dst
reg
src1 < src2
src1 = src2
src1 > src2
section 6.1.6, "Faults" (pg.
6-5).

Advertisement

Table of Contents
loading

Table of Contents