Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->CJNE
CJNE Compare and Jump if Not Equal
Assembler Mnemonic: CJNE <dest byte>,<src byte>, <rel addr>
CJNE compares the magnitudes of the first two operands and branches if their values are now equal.
Formats:
Description | Mnemonic | Bytes | Cycles |
Compare Indirect to Immediate: | CJNE @Ri,#<data>,<code addr> | 3 | 2 |
Compare Immediate to Accumulator: | CJNE A,#<data>,<code addr> | 3 | 2 |
Compare Memory to Accumulator: | CJNE A,<direct addr>,<code addr> | 3 | 2 |
Compare Immediate to Register: | CJNE Rr,#<data>,<code addr> | 3 | 2 |
PSW: | C | AC | F0 | RS1 | RS0 | OV | P |
* | N/A | N/A | N/A | N/A | N/A | N/A |