Electronics and Communication Engineering - Exam Questions Papers - Discussion

Discussion Forum : Exam Questions Papers - Exam Paper 5 (Q.No. 18)
18.
Consider the following program segment written for 8085 based system
LXI SP, FFFFH
MVI A, FFH
MOV BB, A
K: DCR B
PUSH HL
JNZ K
INR A
LXI H, FFCEH
CPI 20H
LHLD

The contents of accumulator is :
CE
20
indeterminate
none of these
Answer: Option
Explanation:

Since contents of HL register pair are unknown and are continuously ''PUSH''ed on the stack; retrieval of the same will result in ''Indeterminate'' data.

Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.