In an 8085 microprocessor system, the following program starts at location 0100H LXI SP 00FF LXI H 0701 MVI A 20H SUB M The content of the accumulator when the program counter reaches 0107 H is

In an 8085 microprocessor system, the following program starts at location 0100H LXI SP 00FF LXI H 0701 MVI A 20H SUB M The content of the accumulator when the program counter reaches 0107 H is Correct Answer 20 H

Concept:

LXI is a 3 Byte Instruction

MVI is a 2 Byte Instruction

SUB is a 1 Byte Instruction

Analysis:

0100 LXI (Op Code Fetch)

0101 -- FF (Lower Order Bits)

0102 -- 00 (Higher Order Bits)

0103 -- LXI (Op Code Fetch)

0104 -- 01

0105 -- 07

0106 -- MVI A (Op Code Fetch) 

0107 -- 20 H

∴ The content of the accumulator when the program counter reaches 0107 H is 20 H

Related Questions

Consider the following system of equations in three real variables x1, x2 and x3
2x1 - x2 + 3x3 = 1
3x1 - 2x2 + 5x3 = 2
-x1 - 4x2 + x3 = 3
This system of equations has
Let X1, X2 be two independent normal random variables with means μ1, μ2 and standard deviations σ1, σ2 respectively. Consider Y = X1 - X2; μ1 = μ2 = 1, σ1 = 1, σ2 = 2, Then,