Documente Academic
Documente Profesional
Documente Cultură
&
Instruction set
8086 Microprocessor
Introduction
Program
A set of instructions written to solve
a problem.
Instruction
Directions which a microprocessor
follows to execute a task or part of a
task.
Computer language
1. Register Addressing
Group I : Addressing modes for
2. Immediate Addressing register and immediate data
3. Direct Addressing
6. Indexed Addressing
6
8086 Microprocessor Group I : Addressing modes for
Addressing Modes register and immediate data
1. Register Addressing
In immediate addressing mode, an 8-bit or 16-bit
2. Immediate Addressing data is specified as part of the instruction
3. Direct Addressing
Example:
4. Register Indirect Addressing
MOV DL, 08H
5. Based Indexed Addressing
The 8-bit data (08H) given in the instruction is
6. Indexed Addressing moved to DL
10. Intrasegment Indirect Mode The 16-bit data (0A9FH) given in the instruction is
moved to AX register
11. Intersegment Direct Mode
7
8086 Microprocessor
Addressing Modes
1. Register Addressing
2. Immediate Addressing
3. Direct Addressing
6. Indexed Addressing
Adder
9
8086 Microprocessor
Addressing Modes : Memory Access
10. Intrasegment Indirect Mode This addressing mode is called direct because the
displacement of the operand from the segment
11. Intersegment Direct Mode base is specified directly in the instruction.
12
8086 Microprocessor Group II : Addressing modes
Addressing Modes for memory data
3. Direct Addressing Registers used to hold the offset address are any
of the following registers:
4. Register Indirect Addressing
BX, BP, DI and SI.
5. Based Indexed Addressing
Content of the DS register is used for base
6. Indexed Addressing
address calculation.ES also used.
7. Register Relative Addressing
Example:
8. Relative Based Indexed
Addressing MOV CX, [BX]
9. Intrasegment Direct Mode Data is present in memory location in DS whose
offset address is in BX. Effective address of data
10. Intrasegment Indirect Mode
13
8086 Microprocessor Group II : Addressing modes
Addressing Modes for memory data
14
8086 Microprocessor Group II : Addressing modes
Addressing Modes for memory data
15
8086 Microprocessor Group II : Addressing modes
Addressing Modes for memory data
16
8086 Microprocessor Group II : Addressing modes
Addressing Modes for memory data
1. Register Addressing
The effective address is formed by adding
• 8 or 16-bit displacement
2. Immediate Addressing
• Content of base registers BX or BP
3. Direct Addressing • Any one of the index registers
In default segment.
4. Register Indirect Addressing
Example:
5. Based Indexed Addressing
MOV AX, 50H [BX][SI]
6. Indexed Addressing
17
8086 Microprocessor Group III : Addressing for control
Addressing Modes transfer instructions
Intersegment Intrasegment
18
8086 Microprocessor Group III : Addressing for control
Addressing Modes transfer instructions
11. Intersegment Direct Mode SHORT LABEL indicate the 8-bit signed
displacement.
12. Intersegment Indirect Mode
19
8086 Microprocessor Group III : Addressing for control
Addressing Modes transfer instructions
20
8086 Microprocessor Group III : Addressing for control
Addressing Modes transfer instructions
21
8086 Microprocessor Group III : Addressing for control
Addressing Modes transfer instructions
1. Register Addressing
Here also the destination to which the control is
to be transferred lies in a different segment.
2. Immediate Addressing
22
8086 Microprocessor Group III : Addressing for control
Addressing Modes transfer instructions
Example
Effective Address