[go: up one dir, main page]

0% found this document useful (0 votes)
18 views6 pages

R23 Extra Unit-1-8085 Addressing Modes

Uploaded by

23f2001325
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

R23 Extra Unit-1-8085 Addressing Modes

Uploaded by

23f2001325
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

8085-Addressing

Modes
8085 – Addressing modes
• To perform any operation, we have to give the corresponding instructions to
the microprocessor.
• Every instruction is divided into two parts, one part is opcode
and another part is operand. Opcode tells the type of operation and operand
is the data on which operation is to be performed.
• In each instruction, programmer has to specify 3 things:
• Operation to be performed.
• Address of source of data.
• Address of destination of result.
• The method by which the address of source of data or the address of
destination of result is given in the instruction is called Addressing Modes.
• The term addressing mode refers to the way in which the operand of the
instruction is specified.
8085 – Addressing modes
• There are five addressing modes in 8085 microprocessor
• The following addressing modes are used in 8085 microprocessor:
• Immediate addressing mode
• Register addressing mode
• Direct addressing mode
• Indirect / Register- indirect addressing mode
• Implied / Implicit addressing mode
• Immediate Addressing Mode:
• The operand is given immediate to the opcode, i.e., the opcode is given in the
instruction itself i.e., part of instruction itself
• Generally the opcodes for immediate addressing mode have “I” as last character
in opcode
• MVI A, 30H ; here MVI is opcode and 30H is operand, and 30H is copied into the
register A
• MVI B,40H ; here MVI is opcode and 40H is operand, and 40H is copied into the
register B
8085 – Addressing modes
• Register addressing mode:
• In this type of addressing mode the instruction specifies the name of the register in which
the data is available and Opcode specifies the name (or) address of the register on which the
operation would be performed.
• MOV A, B ; contents of register B is transferred to register A.
• Direct addressing mode:
• In this mode, the address of the operand is given in the instruction itself.
• LDA 2000 H ; contents of memory location with address 2000H is loaded into accumulator.
• There is a subtle difference between the direct addressing modes and immediate addressing
modes. In immediate addressing mode the data itself is specified within instruction, but
in direct addressing mode the address of the data is specified in the instruction.
8085 – Addressing modes
• Indirect / Register – indirect addressing mode:
• In this mode, the address of operand is specified by a register pair.
• Generally the register pair used for the purpose is HL pair and represented by alphabet “M”.
• MOV A, M; the contents of memory location pointed by HL pair to be moved to register A.

• Implied or implicit addressing mode


• If address of source of data as well as address of destination of result is fixed,
then there is no need to give any operand along with the instruction.
• CMA ; complement the contents of accumulator.
8085 – Addressing modes

You might also like