Professional Documents
Culture Documents
UCS1502
MICROPROCESSORS AND INTERFACING
3. Direct Addressing
5. Based Addressing
Group II : Addressing modes for memory data
6. Indexed Addressing
8. String Addressing
Addressing Modes
1. Register Addressing The instruction will specify the name of the
register which holds the data to be operated by
2. Immediate Addressing the instruction.
3. Direct Addressing Example:
4. Register Indirect Addressing
MOV CL, DH
5. Based Addressing
The content of 8-bit register DH is moved to
6. Indexed Addressing another 8-bit register CL
8. String Addressing
8. String Addressing
10. Indirect I/O port Addressing The 16-bit data (0A9FH) given in the instruction is
moved to AX register
11. Relative Addressing
(AX) 0A9FH
12. Implied Addressing
Addressing Modes : Memory
Access
20 Address lines 8086 can address up to 220 = 1M bytes
of memory
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.
Addressing Modes Group II : Addressing modes for memory
data
(CL) (MA)
(CH) (MA +1)
Group II : Addressing modes for memory
7. Based Index Addressing When BP holds the base value of EA, BP and SS is
used.
8. String Addressing
Example:
1. Direct I/O port Addressing
MOV AX, [BX + 08H]
10. Indirect I/O port Addressing
Operations:
11. Relative Addressing
0008H 08H (Sign extended)
12. Implied Addressing EA = (BX) + 0008H
BA = (DS) x 1610
MA = BA + EA
(AL) (MA)
(AH) (MA + 1)
Group II : Addressing modes for memory
Addressing Modes
data
(CL) (MA)
(CH) (MA + 1)
Group II : Addressing modes for memory
Addressing Modes
data
1. Register Addressing
Addressing Modes
Employed in string operations to operate on
data
string data.
2. Immediate Addressing
The effective address (EA) of source data is
3. Direct Addressing stored in SI register and the EA of destination is
stored in DI register.
4. Register Indirect Addressing
Segment register for calculating base address of
5. Based Addressing source data is DS and that of the destination data
is ES
6. Indexed Addressing
1. Register Addressing
Addressing Modes
These addressing modes are used to access data
ports
Addressing Modes
mode
1. Register Addressing
2. Immediate Addressing
Addressing Modes
mode
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
1. Direct I/O port Addressing
This clears the carry flag to zero.
10. Indirect I/O port Addressing