Skip to content

UGC NET CS 2016Computer System Architecture › Programming the Basic ComputerVerified

UGC NET CS 2016 PYQ: The content of the accumulator after the execution of the following 8085 assembly language program, is: MVI…

The content of the accumulator after the execution of the following 8085 assembly language program, is:

MVI A, 42H
MVI B, 05h
UGC: ADD B
DCR B
JNZ UGC
ADI 25H
HLT
  1. A
    82 H
  2. B
    78 H
  3. C
    76 H
    Correct answer
  4. D
    47 H

Answer

(C) 76 H

Approach

Trace the 8085 loop accumulating B into A, then add the immediate.

Reviewed by UGC IQ Editorial Team.