Lecture 4
Lecture 4
and Interfacing
CS/EEE/ECE/INSTR F241
Prof.Meetha V Shenoy/Prof. Vinay Chamola
BITS Pilani
Pilani Campus BIU & EU
16-bit processor
16 bit registers
• Memory Organization
– Each byte in memory has a 20 bit address starting with 0 to 220-1 or 1M of
addressable memory
– Addresses are expressed as 5 hex digits from 00000 – FFFFF
– Problem: But 20 bit addresses are TOO BIG to fit in 16 bit registers!
The instruction
pointer (IP) in an
8086 microprocessor
is a 16-bit register
that points to the
address of the next
instruction to be
fetched
• The BIU has a dedicated adder for determining physical memory addresses
Adder
• The stack segment defines the area of memory used for the
stack.
Facilitates
Segment Relocation
Registers
18
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
Segment
Registers Code Segment Register
16-bit
19
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
20
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
21
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
22
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
23
8086 Microprocessor
Architecture Execution Unit (EU)
EU decodes and
executes instructions.
and
24
Default segment-offset combinations
8086 Microprocessor
Architecture Execution Unit (EU)
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
CX can be used as CH and CL 26
DX can be used as DH and DL
8086 Microprocessor
Architecture Execution Unit (EU)
27
8086 Microprocessor
Architecture Execution Unit (EU)
28
8086 Microprocessor
Architecture Execution Unit (EU)
29
8086 Microprocessor
Architecture Execution Unit (EU)
30
8086 Microprocessor
Architecture Execution Unit (EU)
EU
Registers
31
8086 Microprocessor
Architecture Execution Unit (EU)
32
8086 Microprocessor
Architecture Execution Unit (EU)
33