Loading....
Coupon Accepted Successfully!

 

Addressing Modes

 

Generally, the following addressing modes are used in the 8085 microprocessor:

 

• Immediate addressing

• Register addressing

• Direct addressing

• Indirect addressing 

Direct Addressing

 

Table: Direct Addressing
 

Instruction

Task

IN 00H

Read data from port 00H

OUT 01H

Write data in port 01H

LDA 8000H

Load the content of the memory location 8000H in accumulator

STA 9000H

Store the content of accumulator in the memory location 9000H

Register Addressing

 

Table: Register addressing
 

Instruction

Task

MOV A,B

Move the content of B register to accumulator

ADD C

The content of C register is added with the content of accumulator

SUB B

Subtract the content of B register from accumulator

PCHL

Exchanges the contents of the program counter with the contents of the H and L registers

Register Indirect Addressing

 

Tab:Register Indirect Addressing

 

Instruction

Task

LDAX B

Load accumulator from address in register pair B–C

MOV A, M

Move the content of the memory location whose address is given in H and L registers in accumulator

MOV M, B

Move the content of the accumulator in the memory location whose address is given in H and L registers

ADD M

Addition of the content of the memory location whose address is given in H and L registers and the content of accumulator

Immediate Addressing

 

Table: Immediate addressing
 

Instruction

Task

MVI D, FFH

Move FFH in register D

LXI H, 8050H

Load H and L register pair with 8050H

ADI 44H

Add 44H with the content of accumulator

CPI B     

Compare the contents of the accumulator with the content of B register

Implicit Addressing

Table: Implicit addressing

 

Instruction

Task

DAA

Decimal adjust accumulator

CMA

Complement the content of accumulator

STC

Set carry flag

RAL

Rotate accumulator left

 

 





Test Your Skills Now!
Take a Quiz now
Reviewer Name