8086 Architecture, Pin Diagram, Addressing Modes
8086 Architecture, Pin Diagram, Addressing Modes
Architecture of 8086
Memory segmentation,
Signal Description,
Addressing modes,
MODULE I
⚫ Architecture of 8086
⚫ Memory segmentation
⚫ Signal description
⚫ Addressing modes
MODULE 1
MICROPROCESSOR
⚫A single chip computer
⚫ Device which has data processing capability
⚫ Program controlled semiconductor device (IC)
which fetches (from memory), decodes and
executes instructions.
⚫ It is used as CPU (Central Processing Unit) in
computers.
⚫ Microcontroller???
◦ P + RAM + RO M + I/O ports + Timer
◦ Less bulkier than P
MODULE 1
Fifth Generation Pentium
32-bit P
GENERATION Superscalar architecture
Fourth Generation
Third Generation During 1980s
During 1978 Low power version of HMOS technology
HMOS technology Faster speed, Higher (HCMOS)
packing density 32 bit processors
16 bit processors 40/ 48/ 64 pins Physical memory space 224 bytes = 16 Mb
Easier to program Virtual memory space 240 bytes = 1 Tb
Dynamically relatable programs Floating point hardware
Processor has multiply/ divide arithmetic Supports increased number of addressing
hardware modes
More powerful interrupt handling
capabilities Intel 80386, 80486
Flexible I/O port addressing Second Generation
During 1973
Intel 8086 (16 bit processor) NMOS technology Faster speed, Higher
density, Compatible with TTL
4 / 8/ 16 bit processors 40 pins
First Generation Ability to address large memory spaces
Between 1971 – 1973 and I/O ports
PMOS technology, non compatible with TTL Greater number of levels of subroutine
4 bit processors 16 pins nesting
8 and 16 bit processors 40 pins Better interrupt handling capabilities
Due to limitations of pins, signals are
multiplexed Intel 8085 (8 bit processor)
MODULE 1
8086- Overview
⚫ First 16-bit processor released by INTEL
in 1978
⚫ Powerful instruction set
⚫ 20-bit addressing capability
⚫ Powerful set of registers- general purpose
and special purpose registers
HOMEW ORK
⚫ DRAWTHE INTERNAL BLOCK
DIAGRAM OF 8086 (detailed)
◦ Refer Lyla B Das., The X86 Microprocessors
Architecture,Programming and Interfacing
MODULE 1
8086 A R C H ITECTURE
MODULE 1
ARCHITECTURE
MODULE 1
EXECUTION UNIT
EU decodes and executes
instructions.
and
Some of the 16 bit registers can be
Index registers (Source used as two 8 bit registers as :
Index, Destination Index)
each of 16-bits AX can be used as AH and AL
BX can be used as BH and BL
MODULE 1
EXECUTION UNIT
EXECUTION UNIT
EXECUTION UNIT
EXECUTION UNIT
EXECUTION UNIT
EXECUTION UNIT
EXECUTION UNIT
Carry Flag
Flag Register Auxiliary Carry Flag This flag is set, when there is a
This is set, if there is a carry from the carry out of MSB in case of
lowest nibble,i.e,bit B3 during addition,or addition or a borrow in case
Sign Flag borrow for the lowest nibble i.e., B3 of subtraction.
This flag is set, when the during subtraction.. Parity Flag
result of computation is This flag is set to 1,if the lower
negative Zero flag byte of the result contains even
This flag is set, when the result number of 1’s ;for odd number
of computation is zero of 1’s set to zero.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OF DF IF TF SF ZF AF PF CF
DEPARTMENT OSeFgm
EeCnEt ,Registers >>
ARYANET INSTITUTE O FTECHN O LOGY
MODULE 1
ADDRESS GENERATION:
◦ 20-bit address of a byte is called its physical address
◦ It is specified as a logical address which is in the form of
two 16-bit numbers in the format base address:offset
◦ Segment register contains 16-bit base(segment) address
◦ Pointer register or index register contains offset address
◦ Segment address left-shifted 4 times + offset address=
physical address
MODULE 1
ADDRESS GENERATION
⚫ Eg:physical address=155A5h (20 bit)
⚫ Segment address=1005h (16 bit)
0001 0000 0000 0101
⚫ Offset=5555h (16 bit) Segment addr left
shifted with
0001 0000 0000 0101 0000 appended zeros
ADDRESS GENERATION
Adder
⚫ Advantages
◦ It allows address registers to have the same size
as the data registers while allowing the use of 20-
bit physical address
◦ All addresses in memory are re-locatable
◦ Allows placing of code, data and stack portions of
the same program in different parts(segments) of
memory, for data and code protection
MODULE 1
A group of First-In-First-
Out (FIFO) in which up to
6 bytes of instruction code
are pre fetched from the
memory ahead of time.
HARDWARE
SPECIFICAT I O N
PINS A N D SIGNALS
C O M M O N SIGNALS
AD 0 -AD 15 (Bidirectional)
Address/Data bus
MN/ M X
MINIMUM /MAXIMUM
This pin signal indicates what mode the
processor is to operate in.
READY
This is the acknowledgement from the slow
device or memory that they have completed the
data transfer.
PINS A N D SIGNALS
MIN/MAX MODE SIGNALS The 8086 microprocessor can work in two modes
of operations :Minimum mode and Maximum mode.
PINS A N D SIGNALS
MINIMUM MODE SIGNALS
PINS 24 TO 31
PINS A N D SIGNALS
MINIMUM MODE SIGNALS
PINS 24 TO 31
PINS A N D SIGNALS
MAXIMUM MODE SIGNALS
PINS 24 TO 31 REASSIGNED
PINS A N D SIGNALS
MAXIMUM MODE SIGNALS
PINS 24 TO 31 REASSIGNED
PINS A N D SIGNALS
MAXIMUM MODE SIGNALS
PINS 24 TO 31 REASSIGNED
ADDRESSING MODES
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
2. Immediate Addressing
3. Direct Addressing
5. Indexed Addressing
8. Implied Addressing
ADDRESSING MODES
The instruction will specify the name of the
1. Register Addressing register which holds the data to be operated by
the instruction.
2. Immediate Addressing
Example:
3. Direct Addressing
MOV CL, DH
4. Register Indirect Addressing
The content of 8-bit register DH is moved to
5. Indexed Addressing another 8-bit register CL
8. Implied Addressing
ADDRESSING MODES
(AX) 0A9FH
ADDRESSING MODES
(CL) (MA)
(CH) (MA +1)
ADDRESSING MODES
SI or DI register is used to hold an index value for
memory.
3. Direct Addressing
(CL) (MA)
(CH) (MA + 1)
ADDRESSING MODES
In Based Index Addressing, the effective address
is computed from the sum of a base register (BX
or BP) and an index register (SI or DI).
2. Immediate Addressing
MOV DX, [BX + SI]
3. Direct Addressing
Operations:
4. Register Indirect Addressing
000AH 0AH (Sign extended)
5. Indexed Addressing
EA = (BX) + (SI)
6. Based Indexed Addressing BA = (DS) x 1610
MA = BA + EA
7. Relative based indexed Addressing
(DX) (MA) or,
8. Implied Addressing
(DL) (MA)
(DH) (MA + 1)
ADDRESSING MODES
In relative based Indexed Addressing, the
effective address is computed from the sum of a
base register (BX or BP), an index register (SI or
1. Register Addressing DI) and a displacement.
(DL) (MA)
(DH) (MA + 1)
ADDRESSING MODES
1. Register Addressing
2. Immediate Addressing
3. Direct Addressing