0% found this document useful (0 votes)
11 views

Addressing Modes-MP (1)

The document outlines the various addressing modes of the 8086 microprocessor, which are methods for specifying the source operand in instructions. It categorizes these modes into groups for register and immediate data, memory data, I/O ports, relative addressing, and implied addressing, providing examples for each. Key modes include immediate, register, direct, indirect, base, indexed, and string addressing, among others.

Uploaded by

kunalgp2033
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)
11 views

Addressing Modes-MP (1)

The document outlines the various addressing modes of the 8086 microprocessor, which are methods for specifying the source operand in instructions. It categorizes these modes into groups for register and immediate data, memory data, I/O ports, relative addressing, and implied addressing, providing examples for each. Key modes include immediate, register, direct, indirect, base, indexed, and string addressing, among others.

Uploaded by

kunalgp2033
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
You are on page 1/ 15

ADDRESSING MODES

Of 8086
Every instruction of a program
has to operate on a data.

The different ways in which a


source operand is denoted in an
instruction are known as
addressing modes.

2
8086
Microprocessor Addressing Modes

Every instruction of a program has to operate on a data.


The different ways in which a source operand is denoted
in an instruction are known as addressing modes.

1. Register Addressing
Group I : Addressing modes for
2. Immediate Addressing register and immediate data

3. Direct Addressing

4. Register Indirect Addressing

5. Based Addressing
Group II : Addressing modes for
6. Indexed Addressing memory data
7. Based Index Addressing

8. String Addressing

9. Direct I/O port Addressing


Group III : Addressing modes for
10. Indirect I/O port Addressing I/O ports

11. Relative Addressing Group IV : Relative Addressing mode

12. Implied Addressing Group V : Implied Addressing mode


3
• Types of Addressing modes:-
• 1.Immediate addressing mode:
• In this mode the operand is specified in the
instruction itself.
e.g. MOV AL, 55H
The 8-bit data (55H) given in the instruction is moved to
AL Register
(DL)  55H
• 2. Register addressing mode:
In this addressing mode the operand is placed in
general purpose register.
e.g. MOV AL , BL

The content of 8-bit register BL is moved to another


8-bit register AL

(AL)  (BL)
• 3. Direct addressing mode:
Here, the effective address of the memory location at
which the data operand is stored is given in the
instruction.

The effective address is just a 16-bit number written


directly in the instruction.
Example:
MOV AX, [2000H]
 The square brackets around the 2000H denotes
the contents of the memory location.
 When executed, this instruction will copy the
contents of the memory location into AX
register.

 This addressing mode is called direct because


the displacement of the operand from the
segment base is specified directly in the
instruction.
4. Register Indirect addressing mode:
In Register indirect addressing, name of the register
which holds the effective address (EA) will be specified in
the instruction.

Registers used to hold EA are any of the following


registers:

BX, BP, DI and SI.

Content of the DS register is used for base address


calculation.

• e. g. MOV AL, [BX]


5. Base Register Addressing Mode:
8 bit or 16 bit displacement is added to the contents
of a base register (BX or BP ), the resulting value is
a pointer to location where data resides.
When BX holds the base value of EA, 20-bit physical
address is calculated from BX and DS.

When BP holds the base value of EA, BP and SS is


used.

e.g. MOV AL , [BX + 05H]


6. Index Register Addressing Mode:
• 8 bit or 16 bit displacement is added to
the contents of a index register (SI or DI),
the resulting value is a pointer to location
where data resides.
• e.g. MOV AL , [SI + 15H]
7. Based-Indexed addressing mode:
The contents of a base register (BX or BP)are
added to the contents of an index register
(SI or DI), the resulting value is pointer to
location where data resides.
e.g. MOV AL , [BX + SI]
8. Based-Indexed plus displacement addressing
mode:
8 bit or 16 bit displacement is added to the
contents of a base register (BX or BP ),
and index register (SI or DI), the resulting value is
a pointer to location where data resides.

e.g. MOV AL , [BX + SI + 05H]


9. String Addressing:

Employed in string operations to operate on string data.

The effective address (EA) of source data is stored in SI


register and the EA of destination is stored in DI register.

Segment register for calculating base address of


source data is DS and that of the destination data is ES

Example: MOVS BYTE


10. Relative addressing mode:
In this addressing mode, the effective
address of a program instruction is specified
relative to Instruction Pointer (IP) by an 8-
bit signed displacement.

Example: JNC START


JC 0AH
11. Implied Addressing mode:
• Instructions using this mode have no
operands. The instruction itself will specify the
data to be operated by the instruction.

• Example: CLC

• This clears the carry flag to zero.

You might also like