CSC167 Microprocessor

MicroprocessorTU Board 2081

Explain different addressing modes in 8085 mocroprocessor.

5

Answer

An addressing mode is the way an instruction specifies where its operand (data) is. The 8085 has five addressing modes.

  1. Immediate addressing. The data itself is part of the instruction. MVI A, 25H loads 25H into A. LXI H, 2050H loads 2050H into the HL pair.
  2. Register addressing. The operand is in a register. MOV B, C copies C into B. ADD B adds B to the accumulator.
  3. Direct addressing. The instruction gives the 16-bit memory address of the data. LDA 2050H loads A from memory location 2050H. STA 3000H stores A at 3000H. IN 01H reads port 01H.
  4. Register indirect addressing. A register pair holds the memory address of the data. MOV A, M loads A from the location whose address is in HL. LDAX B loads A from the address in BC.
  5. Implied (implicit) addressing. The operand is not written in the instruction; the opcode itself implies it, usually the accumulator. CMA complements A. RAL rotates A left. STC sets the carry flag.
Mode Where the operand is Example
Immediate In the instruction MVI A, 25H
Register In a register MOV B, C
Direct At a memory address given in the instruction LDA 2050H
Register indirect At the address held in a register pair MOV A, M
Implied Understood from the opcode CMA

Discussion

Loading…

More Microprocessor questions

All Microprocessor old questions