2 - Block Diagram of Intel 8086
2 - Block Diagram of Intel 8086
Microprocessor
Instruction Queue
Segment Registers
Segment registers generate memory address when combined with other
registers in the microprocessor.
Code segment
Data segment
Extra segment
8086 has 9 flags and they are divided into two categories:
1. Conditional Flags
2. Control Flags
Conditional Flags
Control Flags
Control flags are set or reset to control the operations of the execution unit.
Control flags are as follows:
Example
Find the physical ( effective) address of the data at location that has a
logical address specified as:2222 H : 0016 H
o the number 0016 H is the offset.
o 2222 H is the value of DS.
To find the starting address of the segment, BIU appends the contents of
Segment Register with 0H.
Therefore: starting address=22220 H
Then, it adds offset to it.
EA = 2 2 2 2 0 H +
0016H
------------
22236H
Question ?
CS = 1111 H
The base address of the code segment is 11110 H.
Effective address of memory = 11110H + 1232H = 12342H.
DS = 3333 H
The base address of the data segment is 33330 H.
Effective address of memory = 33330H + 0020H = 33350H.
SS = 2526 H
The base address of the stack segment is 25260 H.
Effective address of memory = 25260H + 1100H = 26350H.
--------------------------------------------------------------------------------------------