Sunteți pe pagina 1din 12

Addressing Modes of

8085 Microprocessor
For More Contents, do subscribe to my channel on
you tube as,

”Tech_Guru Swapnil Kaware”


Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
Addressing Modes of 8085
Microprocessor

Presented By,
Er. Swapnil V. Kaware,
Assistant Professor
B.E. (Electronics), M.E. (Electronics)
svkaware@yahoo.co.in
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
Definition
• The addressing mode of a microprocessor
defines the way in which the operand of
instructions can be accessed.

• The various ways of specifying data (or


operands) for instructions are also called
as addressing modes.

Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)


Opcode & Operand
• An opcode is short form for 'Operation Code.'

• Opcode is an instruction that tells processor what to do


with the variable or data written besides it.

• Oprand is a variable that stores data (and data can be a


memory address or any data that we want to process).

• e.g. MVI A,B


• here instruction MVI is an opcode. A & B are oprands.
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
Mnemonics
• Assembly language uses symbolic codes instead of
binary or to represent the opcodes known as
mnemonics.

• Mnemonics are instructions or commands to perform


a particular operation given by user to microprocessor.

• e.g MOV
MVI
ADD
SUB
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
Types of Addressing Modes
1). Immediate addressing mode,

2). Register addressing mode,

3). Direct addressing mode,

4). Register Indirect addressing mode,

5). Implied/Implicit addressing mode.


Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
(1) Immediate Addressing Mode

• In 8085, the ‘I’ letter falls under this category.

• Letter ‘I’ Indicates “Immediate Addressing Mode”.

• The data can be either 8 bit or 16 bit.

• If the immediate data is 16 bit, the instruction is of 3 bytes.

• For Example:
• MVI A,20H: It moves 8 bit immediate data (20H) into
accumulator.
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
(2) Register Addressing Mode

• In 8085, the “Register Addressing Mode “ specifies the


source operand, destination operand or both to be
contained in an 8085 register.

• This results in faster execution because it is not


necessary to access memory locations for operands.

• For Example:
• MOV A,B: It moves contents of register B into
accumulator (A).
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
(3) Direct Addressing Mode
• In 8085, the “Direct Addressing Mode” specifies the 16 bit
address of the operand within the instruction itself, the second
and third bytes of instruction contain 16 bit address.

• This is a 3-byte instruction.

• The address of the operand is available in the instruction itself

• For Example:

• STA 8000H; Store the contents of the Accumulator in the


location 8000H
(4) Register Indirect Addressing Mode
• In 8085, The 16-bit address location of the operand
stored in a register pair (H-L) is given in the instruction.

• The address of the operand is given in an indirect way


with the help of a register pair. So it is called Register
indirect addressing mode.

• For Example:
• MOV M,A: It stores the contents of Accumulator (A) into
Memory location (M), location pointed by HL register
pair.
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
(5) Implied/Implicit Addressing Mode

• In 8085, the “Implied/Implicit Addressing Mode”,


opcode specifies the address of operands.

• This mode doesn't require any operand

• For Example:
• CMA : It Complements the contents of accumulator.

Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)


For More Contents, do subscribe
to my channel on you tube as,

”Tech_Guru Swapnil
Kaware”
(Thanks For Watching)
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)