You are on page 1of 9

Addressing Modes

• 8085 instructions are classified into the following groups based on the
addressing type.

• Register Addressing Mode


• Direct Addressing Mode
• Register Indirect Addressing Mode
• Immediate Addressing Mode
• Implicit Addressing Mode
Register Addressing Mode

• The operand necessary for the instruction execution is available in the


register.
• E.g. SUB D
• Meaning that the operand is available in register D.
Direct Addressing Mode

• In this type of addressing Mode, the 16 bit addressing of the operand


is directly available in the instruction.
• E.g.
• LDA 2000H
• In this example the 16 bit address (2000 H) is given in the instruction,
it says that load accumulator with data from memory location 2000H.
Register Indirect Addressing Mode

• In this type of addressing mode the 16 bit addressing for the operand
is seen in the 16 bit register pair, identified in the instruction.
E.g.
• STAX B
• The instruction says to store the contents of the accumulator in the
memory location, who’s address is available in the register pair.
• The register pair is BC in this example
Immediate Addressing Mode

• In this addressing mode, the operand necessary is immediatlely


available in the instruction itself.
• E.g.
• ADI 20 H
• The meaning of the instruction is to add the 20H data directly to the
contents of the accumulator.
Implicit Addressing Mode

• There are certain instructions in 8085 which does not require the
address of the operand to perform the operation. They operate only
upon the contents of accumulator.
• CMA, RAR, RAL etc.
• CMA, Compliment the contents of the accumulator bit by bit and store
the result in the accumulator.
Execution of Program(An Example)
Execution of Program(An Example)
How does a microprocessor differentiate
between instruction and data?

You might also like