8051 instruction :: Cjne

CJNE


Operation:CJNE
Function:Compare and Jump If Not Equal
Syntax:CJNE operand1,operand2,reladdr

InstructionsOpCodeBytesCyclesFlags
CJNE A,#data,reladdr0xB432C
CJNE A,iram addr,reladdr0xB532C
CJNE @R0,#data,reladdr0xB632C
CJNE @R1,#data,reladdr0xB732C
CJNE R0,#data,reladdr0xB832C
CJNE R1,#data,reladdr0xB932C
CJNE R2,#data,reladdr0xBA32C
CJNE R3,#data,reladdr0xBB32C
CJNE R4,#data,reladdr0xBC32C
CJNE R5,#data,reladdr0xBD32C
CJNE R6,#data,reladdr0xBE32C
CJNE R7,#data,reladdr0xBF32C


Description: CJNE compares the value of operand1 and operand2 and branches to the indicated relative address if operand1 and operand2 are not equal. If the two operands are equal program flow continues with the instruction following the CJNE instruction.

The Carry bit (C) is set if operand1 is less than operand2, otherwise it is cleared.









Post Your Comments Here :
 


User Login

Username :


Password :