MICROPROCESSOR AND MICROCONTROLLER

8051 INSTRUCTION SET ADDRESSING MODES

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
DJNZ instruction in 8051 will
A
Decrement the first operand by 1 and jump to the location identified by second operand if the resulting value is not zero
B
Decrement the first operand by 2 and jump to the location identified by second operand if the resulting value is not zero
C
Decrement the operand by 1
D
Decrement the operand by 2
Explanation: 

Detailed explanation-1: -Explanation: DJNZ is 2-byte instruction. This means jump can be of-128 to +127 locations with respect to PC.

Detailed explanation-2: -MOV instruction takes 1 Machine cycle DJNZ instruction takes 2 Machine cycle.

There is 1 question to complete.