The following FIVE instructions were executed on an 8085 micropro

The following FIVE instructions were executed on an 8085 micropro
|

The following FIVE instructions were executed on an 8085 microprocessor.

MVI A, 33H

MVI B, 78H

ADD B

CMA

ANI 32H

The Accumulator value immediately after the execution of the fifth instruction is

A. 00H

B. 10H

C. 11H

D. 32H

Please scroll down to see the correct answer and solution guide.

Right Answer is: B

SOLUTION

Concept:

MVI → Move immediate data to register

ADD → Contents of operand + content of accumulator & result is stored in the accumulator

CMA → Compliment the contents of the accumulator

ANI → Logically AND the contents of the accumulator with 8-bit data and store data in the accumulator

Calculation:

MVI A, 33H           A ← 33H

MVI B, 78H           B ← 33H