8051 MICROCONTROLLER
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which is the instruction that branches when A==0?
|
JC
|
|
JMP
|
|
JZ
|
|
DJNZ
|
Explanation:
Detailed explanation-1: -BEQ (short for “Branch if EQual") is the mnemonic for a machine language instruction which branches, or “jumps", to the address specified if, and only if the zero flag is set.
Detailed explanation-2: -The JZ instruction transfers control to the specified address if the value in the accumulator is 0. Otherwise, the next instruction is executed. Neither the accumulator nor any flags are modified by this instruction.
Detailed explanation-3: -In 8085 Instruction set, we are having one mnemonic JZ a16, which stands for “Jump Zero” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction.
There is 1 question to complete.