MSM80C154S/83C154S/85C154HVS
27022. CJNE Rr, #data, code address(Compare immediate data to register, jump if not equal)
10111r2r1r0
70
Instruction code
#data
Relative offset
Operations
Number of bytes
Number of cycles
Flags
(PSW)
Description
: Byte 1
R7R6R5R4R3R2R1R0
70
Byte 3
(PC)(PC)+3
IF ((Rr))#data r=0 thru 7
THEN
(PC)(PC)+relative offset
IF ((Rr))<#data r=0 thru 7
THEN
(C)1
ELSE
(C)0
:
C AC F0 RS1 RS0 OV F1 P
:
:
:
The register r contents are compared with an immediate data
value, and control is shifted to a relative jump address if the
compared data is not equal. If the compared data is equal,
control is shifted to the next address following this instruction.
The carry flag is set to 1 if the immediate data value is greater
than the register r contents, but is set to 0 if otherwise.
:
3
2
I7I6I5I4I3I2I1I0
70
Byte 2