RTUComputer ScienceYr 2023 · Sem 32023

Q16Microprocessor and Microcontroller

Question

5 marks

Explain various addressing modes in 8085 µP with suitable examples.

Answer

An exhaustive breakdown of 8085 addressing modes, defining Immediate, Register, Direct, Indirect, and Implied modes with precise binary instruction examples.

In assembly language, an instruction must specify an operation (the Opcode) and the data to be operated upon (the Operand). "Addressing Modes" define the highly specific mathematical techniques the microprocessor utilizes to actually locate that operand in the physical hardware (whether it is inside a register, embedded in the instruction, or residing in external RAM).

1. Immediate Addressing Mode

In this mode, the actual 8-bit or 16-bit data is mathematically hardcoded directly into the instruction itself. The microprocessor does not need to search memory; the data immediately follows the opcode. - Example: MVI A, 45H (Move Immediate to Accumulator). The absolute hexadecimal value 45 is physically loaded directly into Register A.

2. Register Addressing Mode

This is the fastest possible mode. The data strictly resides within one of the internal, high-speed general-purpose registers. The microprocessor never accesses the external System Bus. - Example: MOV B, C (Move from C to B). The 8-bit data currently inside Register C is instantly copied directly into Register B.

3. Direct Addressing Mode

In this mode, the instruction explicitly provides the exact 16-bit absolute memory address where the operand is physically located. - Example: LDA 2050H (Load Accumulator Direct). The microprocessor forces the address 2050H onto the Address Bus, reads the 8-bit value stored at that specific RAM location, and copies it into the Accumulator.

4. Register Indirect Addressing Mode

This is a highly complex, pointer-based mode. The instruction does not contain the data, nor does it contain the address. Instead, it specifies a 16-bit register pair (almost universally HL) that currently holds the 16-bit memory address. - Example: MOV A, M (Move from Memory to Accumulator). The microprocessor reads the 16-bit address currently stored in the H-L register pair, forces that address onto the bus, reads the RAM location, and copies the data to Register A.

5. Implied / Implicit Addressing Mode

In this mode, the operand is completely mathematically implied by the opcode itself. No data or registers are explicitly stated in the instruction because the target is absolutely fixed in hardware (usually the Accumulator). - Example: CMA (Complement Accumulator). The instruction physically flips every single bit inside the Accumulator. The target is implied.

Back to Paper