Q. 12 For 8085 microprocessor, the following program is executed.
MVI A, 05H;
MVI B, 05H;
PTR: ADD B;
DCR B;
JNZ PTR;
ADI 03H;
HLT;
At the end of program, accumulator contains
(A) 17H
(B) 20H
(C) 23H
(D) 05H
Answer: A
Explanation:
Q. 12 For 8085 microprocessor, the following program is executed.
MVI A, 05H;
MVI B, 05H;
PTR: ADD B;
DCR B;
JNZ PTR;
ADI 03H;
HLT;
At the end of program, accumulator contains
(A) 17H
(B) 20H
(C) 23H
(D) 05H
Answer: A
Explanation: