Gate EC-2013 Question Paper With Solutions

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:
Gate EC-2013 Question Paper With Solutions

Learn More:   Gate CS-2008 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here