10
Architecture of 8086 PRESENTED BY: N.MURUGESAN E.C.E. – THIRD YEAR i Shanmugha College Of Engineering & Technol SALEM

Architecture of 8086

Embed Size (px)

Citation preview

Page 1: Architecture of 8086

Architecture of 8086

PRESENTED BY: N.MURUGESAN

E.C.E. – THIRD YEAR

Sri Shanmugha College Of Engineering & TechnologySALEM

Page 2: Architecture of 8086

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

| || || |

Page 3: Architecture of 8086

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

Page 4: Architecture of 8086

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

Page 5: Architecture of 8086

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

Page 6: Architecture of 8086

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

Page 7: Architecture of 8086

8086 Instruction Set:

1. Data transfer instructions: two types

operands, the source and destination.

Example: MOVE CX,DX

Page 8: Architecture of 8086

2. Input/Output Instructions: Example: IN AL,DX

3.Arithmetic Instructions:

4. Shift and Rotate Instruction Example: SHL

5. Branch Instructions:. Example: JMP START

Page 9: Architecture of 8086

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

Page 10: Architecture of 8086

THANK YOU