The following instructions were executed on 8085 microprocessor :

MVI A, 33H

MVI B, 78H A

ADD B

CMA

The Accumulator value after the execution of the fourth instruction is 

This question was previously asked in
NIELIT Scientific Assistant ECE 5 Dec 2021 Official Paper
View all NIELIT Scientific Assistant Papers >
  1. 10 H
  2. CCH 
  3. 54 H
  4. 32H

Answer (Detailed Solution Below)

Option 3 : 54 H
Free
NIELIT Scientific Assistant Quantitative Aptitude Mock Test
0.6 K Users
20 Questions 20 Marks 30 Mins

Detailed Solution

Download Solution PDF

Explanation:

Let's analyze the instructions executed on the 8085 microprocessor step by step to understand how the accumulator value is determined after the fourth instruction.

Instructions:

  1. MVI A, 33H: This instruction moves the immediate value 33H into the Accumulator (A). Therefore, after this instruction, the Accumulator (A) will hold the value 33H.
  2. MVI B, 78H: This instruction moves the immediate value 78H into the register B. So, register B will hold the value 78H after this instruction.
  3. ADD B: This instruction adds the content of register B to the Accumulator (A) and stores the result in the Accumulator. The values before the addition are:
  • Accumulator (A) = 33H
  • Register B = 78H

Now, performing the addition:

33H + 78H = ABH

After this instruction, the Accumulator (A) will hold the value ABH.

  1. CMA: This instruction complements (inverts) the contents of the Accumulator. In other words, it changes all 1s to 0s and all 0s to 1s in the binary representation of the Accumulator's value.

Let's first convert ABH to binary:

ABH = 1010 1011 (in binary)

Complementing this value (changing all bits):

1010 1011 becomes 0101 0100 (in binary)

Converting 0101 0100 back to hexadecimal:

0101 0100 = 54H

Therefore, after the CMA instruction, the Accumulator (A) will hold the value 54H.

Correct Option Analysis:

The correct option is:

Option 3: 54H

This option correctly represents the value of the Accumulator after the execution of the fourth instruction (CMA).

Latest NIELIT Scientific Assistant Updates

Last updated on Jun 12, 2025

-> NIELIT Scientific Assistant city intimation slip 2025 has been released at the official website.

-> NIELIT Scientific Assistant exam 2025 is scheduled to be conducted on June 28. 

-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.

-> Online application form, last date has been extended up to from 17th April 2025.

->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.

 

-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).

More Programming with 8085 Questions

Get Free Access Now
Hot Links: teen patti king teen patti all app teen patti gold online teen patti joy mod apk