Addressing Modes: Middle Technical University Electrical Engineering Technical College
Addressing Modes: Middle Technical University Electrical Engineering Technical College
ADDRESSING MODES
Lecture No.3
Mohammed D. Ali
3rd stage
2018-2019
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 register and
2. Immediate Addressing immediate data
3. Direct Addressing
5. Based Addressing
Group II : Addressing modes for memory data
6. Indexed Addressing
8. String Addressing
8. String Addressing
3
8086 Microprocessor Group I : Addressing modes for register and
immediate data
8. String Addressing
MOV AX, 0A9FH
9. Direct I/O port Addressing
The 16-bit data (0A9FH) given in the instruction is
10. Indirect I/O port Addressing
moved to AX register
11. Relative Addressing
(AX) 0A9FH
12. Implied Addressing
4
8086 Microprocessor
12. Implied Addressing This addressing mode is called direct because the
displacement of the operand from the segment
base is specified directly in the instruction.
8
8086 Microprocessor Group II : Addressing modes for memory
data
1. Register Addressing
Addressing Modes
In Register indirect addressing, name of the
2. Immediate Addressing register which holds the effective address (EA)
will be specified in the instruction.
3. Direct Addressing
Registers used to hold EA are any of the following
4. Register Indirect Addressing registers:
5. Based Addressing
BX, BP, DI and SI.
6. Indexed Addressing
Content of the DS register is used for base
7. Based Index Addressing address calculation.
(CL) (MA)
9 (CH) (MA +1)
8086 Microprocessor
Addressing Modes Group II : Addressing modes for memory
data
(AL) (MA)
10
(AH) (MA + 1)
8086 Microprocessor Group II : Addressing modes for memory
(CL) (MA)
(CH) (MA + 1)
11
8086 Microprocessor Group II : Addressing modes for memory
12
8086 Microprocessor
Group II : Addressing modes for memory
1. Register Addressing
2. Immediate Addressing
1. Register Addressing
2. Immediate Addressing
3. Direct Addressing
5. Based Addressing
6. Indexed Addressing
Instructions using this mode have no operands.
The instruction itself will specify the data to be
7. Based Index Addressing
operated by the instruction.
8. String Addressing
Example: CLC
9. Direct I/O port Addressing
This clears the carry flag to zero.
10. Indirect I/O port Addressing
16
Thanks for listening…