edited by
38 views
0 votes
0 votes

Consider the following assembly language program.

$\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

  1. an output of $87 \mathrm{H}$ at $\text{PORT1}$
  2. an output of $87 \mathrm{H}$ at $\text{PORT2}$
  3. infinite looping of the program execution with accumulator data remaining at $00 \; \mathrm{H}$.
  4. infinite looping of the program execution with accumulator data alternating between $00 \; \mathrm{H}$ and $87 \; \mathrm{H}$.
edited by

Please log in or register to answer this question.

Answer: