Skip to content
Official PYQ · 2002

GATE EC 2002 Set 1 Q2.13 — Computer Organization

Explain with AI

Consider the following assembly language program.

 MVI  B,87H  MOV  A, B  START : JMP  NEXT  MVI  B, OOH  XRA  B  OUT PORT1HLT NEXT : XRAB JP STARTOUTPORT2HLT\begin{array}{rll} \text{ MVI } & \text{ B,87H } \\ \text{ MOV } & \text{ A, B } \\ \text{ START : JMP } & \text{ NEXT } \\ \text{ MVI } & \text{ B, OOH } \\ \text{ XRA } & \text{ B } \\ \text{ OUT } & \text{PORT1} \\ \text{HLT} & \\ \text{ NEXT : XRA} & \text{B} \\ \text{ JP } & \text{START} \\ \text{OUT} & \text{PORT2} \\ \text{HLT} & \end{array}

The execution of the above program in an 8085 microprocessor will result in

Choose one option
View answer

Answer: B

Worked explanation not available yet.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Computer Organization questions