Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->DJNZ
DJNZ Decrement operand, test and jump
The operand is decremented and then tested for zero. If it is zero, then program control passes through to the next instruction. Otherwise control jumps to the specified address.
An original value of 00H will underflow to 0FFH.
No flags are affected.
|Decrement register:||DJNZ Rn,<branch address>||2||2|
|Decrement memory:||DJNZ <direct address>,<branch address>||3||2|