Loading...

Loading, please wait...

ExamDost Practice Questions

Practice over 1000+ GATE-level questions from this topic!

Designed to match the latest GATE pattern with topic-wise precision, difficulty tagging, and detailed solutions.

Q#1 Microprocessor GATE EE 2001 MCQ +2 marks -0.66 marks

An intel 8085 processor is executing the program given below.

                          MVI A, 10H

                          MVI B, 10H

BACK:            NOP

                          ADD B

                          RLC

                          JNC BACK

                          HLT

The number of times that the operation NOP will be executed is equal to

1

2

3

4

Explanation:

The instruction NOP will be executed as many number of times as the loop is executed. Upon execution once,

A = A + B = 20H (0010 0000)

RLC;  A = 40H     (0100 0000), CY = 0

Second execution,

A = A + B = 50H  (0101 0000)

RLC; A = A0H       (1010 0000), CY = 0

Third execution,

A = A + B = B0H  (1011 0000)

RLC; A = 61H        (0110 0001), CY = 1

Since, the CY flag is now set the loop terminates and hence NOP instruction is executed thrice.

Browse Practice Questions by Chapters / Topics in Browse Practice Questions by Chapters / Topics in GATE Electrical Engineering
Total Questions

Attempted

% Attempted

Correct

% Correct

Topic Questions Attempted Correct
Network Analysis 208 0 0
Signals and Systems 21 0 0
Control Systems 18 0 0
Analog Electronics 10 0 0
Digital Electronics 138 0 0
Electrical Machines 17 0 0
Power Electronics 17 0 0
Power Systems 18 0 0
EMFT EE 8 0 0
Measurement 6 0 0
Engineering Mathematics 27 0 0
General Aptitude 104 0 0