GATE Exam  >  GATE Questions  >  The following FIVE instructions were executed... Start Learning for Free
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
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
The following FIVE instructions were executed on an 8085 microprocesso...
View all questions of this test
Most Upvoted Answer
The following FIVE instructions were executed on an 8085 microprocesso...
Explanation:

To determine the value of the accumulator after the execution of the fifth instruction, we need to analyze each instruction one by one.

Instruction 1: MVI A, 33H
- This instruction moves the immediate data 33H to the accumulator (register A).
- After this instruction, the accumulator contains the value 33H.

Instruction 2: MVI B, 78H
- This instruction moves the immediate data 78H to register B.
- After this instruction, register B contains the value 78H.

Instruction 3: ADD B
- This instruction adds the value in register B to the accumulator.
- The previous value in the accumulator (33H) is added to the value in register B (78H).
- The result of the addition is stored in the accumulator itself.
- The value in the accumulator is now 33H + 78H = ABH.

Instruction 4: DCR A
- This instruction decrements the value in the accumulator by 1.
- The previous value in the accumulator (ABH) is decremented by 1.
- The value in the accumulator is now AAH.

Instruction 5: ANI 32H
- This instruction performs a bitwise AND between the accumulator and the immediate data 32H.
- The previous value in the accumulator (AAH) is ANDed with 32H.
- The result of the bitwise AND is stored in the accumulator itself.
- The value in the accumulator is now AAH & 32H = 20H.

Therefore, the final value of the accumulator after the execution of the fifth instruction is 20H, which corresponds to option 'B'.
Explore Courses for GATE exam

Similar GATE Doubts

The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer?
Question Description
The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer?.
Solutions for The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice The following FIVE instructions were executed on an 8085 microprocessor.MVI A, 33HMVI B, 78HADD BCMAANI 32HThe Accumulator value immediately after the execution of the fifth instruction isa)00Hb)10Hc)11Hd)32HCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev