Upload
mohan-mohan
View
28
Download
4
Embed Size (px)
Citation preview
Architecture of 8086
PRESENTED BY: N.MURUGESAN
E.C.E. – THIRD YEAR
Sri Shanmugha College Of Engineering & TechnologySALEM
Internal Architecture of 8086
CS
DS
SS
ES
IP
Internal Communication
registers.
Bus Control System
1 2 3 4 5 6
INSTRUCTION QUEUE
I/O Control System
Flags
ALU
AH Al
BH BL
CH CL
DH DL
SP
BP
DI
SI
Temporary Registers
Bus Interface Unit (BIU)Execution Unit (EU)
Address Bus
Data Bus
| || || |
The 8086 microprocessor is internally divided into two separate functional unit:
a. Bus Interface Unit: It unit fetches instructions, reads data from memory
Instruction Queue: The BIU Instruction Queue is a FIFO group of registers in which up to 6 bytes of instruction code are perfected form memory ahead of time. This is done in order to speed up program execution by overlapping instruction fetch with execution.
Bus Control Circuitry: The Bus Control Circuitry logic of a BIU generates all the bus control signals such as READ, WRITE for memory or I/O
Segment Registers: It has four 16 bit segment registers.
These are: Code segment: Stack segment: Data segment: Extra segment: flag registers
The DX register is used to hold the high 16 bit result
The two pointer registers SP and BP are used to access data in the stack segment.
The two index registers SI and DI are used in indexed addressing mode.
The 8086 has six one-bit flags: CF,OF,ZF,AF,PE,SF.
The 8086 has three control flags: DF,TF,IF
8086 Addressing Modes
The basic and other addressing modes are
1. Addressing mode for Accessing Immediate and Register Data:
Example: MOV DX,CX
2. Immediate Addressing Mode:
Example: MOVE DX,0502H
.
3. Direct Addressing Mode:
Ex: MOV BX, START
Example: MOVE CX,DS:START
4. Register Indirect Mode:
Example: MOVE [DI],BX
5. Based Addressing Mode: Example: MOVE AX,START[BX],
6. Indexed Addressing Mode: Example: MOVE AX,START[SI]
7. String Addressing Mode Example: MOVES BYTE
8086 Instruction Set:
1. Data transfer instructions: two types
operands, the source and destination.
Example: MOVE CX,DX
2. Input/Output Instructions: Example: IN AL,DX
3.Arithmetic Instructions:
4. Shift and Rotate Instruction Example: SHL
5. Branch Instructions:. Example: JMP START
8086 Memory
This bank can be selected by :
BHE A0 Byte Transferred
0 0 Both Bytes
0 1 Byte to /from odd address via D15-D8
1 0 Byte to /from even address via D15-D8
1 1 None
THANK YOU