Compare And Branch<Cc> - Intel i960 Jx Developer's Manual

Microprocessor
Table of Contents

Advertisement

6.2.21
COMPARE AND BRANCH<cc>
Mnemonic:
cmpibe
cmpibne
cmpibl
cmpible
cmpibg
cmpibge
cmpibo
cmpibno
cmpobe
cmpobne
cmpobl
cmpoble
cmpobg
cmpobge
Format:
cmpib*
cmpob*
Compares src2 and src1 values and sets AC register condition code according
Description:
to comparison results. When logical AND of condition code and mask part of
opcode is not zero, the processor branches to instruction specified with targ;
otherwise, the processor goes to next instruction.
targ can be no farther than -2
the Intel i960 processor assembler, targ must be a label which specifies target
instruction's IP.
Functions these instructions perform can be duplicated with a
followed by a branch-if instruction, as described in
"COMPARE" (pg.
INSTRUCTION SET REFERENCE
Compare Integer and Branch If Equal
Compare Integer and Branch If Not Equal
Compare Integer and Branch If Less
Compare Integer and Branch If Less Or Equal
Compare Integer and Branch If Greater
Compare Integer and Branch If Greater Or Equal
Compare Integer and Branch If Ordered
Compare Integer and Branch If Not Ordered
Compare Ordinal and Branch If Equal
Compare Ordinal and Branch If Not Equal
Compare Ordinal and Branch If Less
Compare Ordinal and Branch If Less Or Equal
Compare Ordinal and Branch If Greater
Compare Ordinal and Branch If Greater Or Equal
src1,
src2,
reg/lit
reg
src1,
src2,
reg/lit
reg
12
12
to (2
- 4) bytes from current IP. When using
6-33).
targ
disp
targ
disp
cmpi
or
cmpo
section 6.2.20,
6-35
6

Advertisement

Table of Contents
loading

Table of Contents