Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

1/24/2024

Topic-II

8086 Microprocessor & it’s


Architecture

T1. Barry B. Brey, The Intel Microprocessors. Pearson, Eight Ed. 2009. Chapter 2
R1. Douglas V Hall, Microprocessor and Interfacing, TMH, Second Edition. Chapter 2

Lecture 4

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

16-bit and 32-bit Microprocessor

1/24/2024 2

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

1
1/24/2024

Variations of 8086 - 8088

1/24/2024 3

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

Characteristics of the x86 family

• CISC
• Instructions are broken up into micro-operations
• Complex instruction decoder

1/24/2024 4

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

2
1/24/2024

8086 Microprocessor

1/24/2024 5

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

Bus Interface Unit (BIU)


• Handles all transfers of data and addresses on the buses for
the execution unit

Execution Unit (EU)

• Actual function is performed here


- instructs BIU from where to fetch an instruction
- decodes it,
- executes it

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

3
1/24/2024

8086 Microprocessor

1/24/2024 7

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

Block diagram of 8086


Address bus (20 bits)
AH AL
General purpose
BH BL register 
CH CL
Execution Unit
DH DL
(EU) Data bus
SP CS (16 bits)
Segment
BP register DS
SI SS
DI ALU Data bus ES
(16 bits)
IP

Bus
control
ALU Instruction Queue External bus
EU
control
Flag register
Bus Interface Unit (BIU)
8

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

4
1/24/2024

x86 -ISA
Register Organisation

1/24/2024 9

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

8086 Register Organization


• General purpose Registers.
- AX, BX, CX, DX

• Segment Registers.
- CS, DS, SS, ES

• Pointer and Index Registers.


- IP, BP, SP
-SI, DI

• Flag Registers
-FLAGS

1/24/2024 10

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

5
1/24/2024

Function wise 8086 Register


organization

• Multipurpose Registers.
- AX, BX, CX, DX, BP, DI, SI

• Special Purpose Registers.


- IP, SP, FLAGS

• Segment Registers.
- CS, DS, SS, ES

1/24/2024 11

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

8086 Register organization

IP : INSTRUCTION POINTER

1/24/2024 12

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

6
1/24/2024

General Purpose Registers

13

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

Pointer and Index Registers

IP : INSTRUCTION POINTER

SP Stack Pointer

BP Base Pointer
Pointer and
Index Group
SI Source Index

DI Destination Index

14

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

7
1/24/2024

Pointer and Index Registers


Pointer (IP, BP, SP): Contains offset within a particular segment
for forming physical address.
IP contain offset within Code segment.
BP and SP contain offset with Stack segment.

Index (SI, DI) : Used as general purpose as well as contain offset


with Data and Extra segment respectively.

Index registers are useful for string manipulation.

1/24/2024 15

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

16 bit Flag Register in 8086


 Flag register contains information reflecting the current status of a
microprocessor. It also contains information which controls the
operation of the microprocessor.
15 0
   OF DF IF TF SF ZF  AF  PF  CF

 Control Flags  Status Flags


CF: Carry flag
IF: Interrupt enable flag PF: Parity flag
DF: Direction flag AF: Auxiliary carry flag
TF: Trap flag ZF: Zero flag
SF: Sign flag
OF: Overflow flag 3-16
ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

8
1/24/2024

Flags

Conditional/ status Flags: They are set/reset by the processor to indicate


certain condition that arises during the execution of a program. (the lower
byte of 16 bit along with overflow flag.)

- Reflects the result of operation performed by CPU.

Control Flags: they are deliberately set/reset by the programmer to control


certain operations of the processor. (higher byte of excluding overflow)

3-17

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

Status Flags

3-18

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

9
1/24/2024

Control Flags

IF: Interrupt enable flag (If IF is set, IF=1 CPU will


serve the interrupts from external device)

DF: Direction flag used for string manipulation of


instructions. (If DF is set, DF=1, string will process
from highest towards lowest address) (opposite of little
endian format)

TF: Trap flag (If TF is set, TF =1, processors enter


into single step execution ) This flag normally is used
for debugging of program.
3-19

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

End of Lecture 4

1/24/2024 20

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

10

You might also like