An accumulator contains ______ after the execution of the followi
![An accumulator contains ______ after the execution of the followi](http://storage.googleapis.com/tb-img/production/20/06/F2_S.B_23.6.20_pallavi_D%207.png)
An accumulator contains ______ after the execution of the following instructions in an Intel 8085 Microprocessor:
MVI A, 7FH; MVI B, AAH; XRA BA. DFH
B. AFH
C. 00H
D. D5H
Please scroll down to see the correct answer and solution guide.
Right Answer is: D
SOLUTION
MVI r, Data: This instruction directly loads a specified register with an 8-bit data given within the instruction. The register ‘r’ is an 8-bit general purpose register such as A, B, C, D, E, and L.
MVI A, 7F H: This instruction will load 7FH directly into the ‘A’ register.
MVI B, AA H: This instruction will load AAH directly into the ‘B’ register.
XRA r: This instruction logically XOR’S the contents of specific register with the contents of
Accumulator & stores the result in the Accumulator.
A ← A ⊕ r;
XRA B: This instruction will logically XOR’S the contents of ‘B’ register with contents of Accumulator.
A ← A ⊕ B
The truth table for an XOR operation is as shown:
∴ The accumulator will contain (D5)H