Difficulty: Easy
Correct Answer: False
Explanation:
Introduction / Context:This question checks understanding of the 8051 conditional jump instruction JNZ (jump if A != 0) and how immediate moves affect the accumulator A.
Given Data / Assumptions:
Concept / Approach:Because A is explicitly loaded with 1 before each JNZ, the zero condition is never met. Therefore, the branch is always taken, forming an infinite loop at STAT.
Step-by-Step Solution:
1) Execute MOV A, #01H → A = 1.2) Execute JNZ STAT → since A != 0, jump to STAT.3) Repeat the same two instructions forever because A is reloaded with 1 each iteration.4) No path clears A to zero, so the loop never exits.Verification / Alternative check:Single-step in a simulator: the program counter toggles between the two instructions indefinitely.
Why Other Options Are Wrong:
Common Pitfalls:Confusing JNZ with conditional flags; on 8051, JNZ checks accumulator zero directly.
Final Answer:False — the sequence loops forever.
Discussion & Comments