MiP Architecture
MiP Architecture
and Interfacing
8086/8088 Architecture
Computer
Microprocessor
CPU
07-Feb-19 2
DATA BUS:
No of Data lines
• 16 lines –D15–D0
CONTROL LINES:
-Active low signals
• MEMR
• MEMW
• IOR
• IOW
07-Feb-19 3
07-Feb-19 4
07-Feb-19 5
07-Feb-19 6
07-Feb-19 7
Add Bus
Memory –
Data Bus
Registers to hold bits
Memory
Read
Write
07-Feb-19 8
07-Feb-19 9
ISA
07-Feb-19 11
07-Feb-19 12
07-Feb-19 13
07-Feb-19 15
07-Feb-19 16
07-Feb-19 17
Adder
07-Feb-19 18
07-Feb-19 20
07-Feb-19 22
8086’s 1-megabyte The 8086 can directly address Programs obtain access to
memory is divided into four segments (256 K bytes code and data in the
segments of up to 64K within the 1 M byte of memory) segments by changing the
bytes each. at a particular time. segment register content to
point to the desired
segments.
07-Feb-19 23
categorized into OF DF IF TF SF ZF AF PF CF
4 groups
16-bit
07-Feb-19 25
16-bit
07-Feb-19 26
07-Feb-19 27
16-bit
07-Feb-19 28
07-Feb-19 29
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.
07-Feb-19 30
and
Some of the 16 bit registers can be used as
two 8 bit registers as :
Index registers (Source
Index, Destination Index) AX can be used as AH and AL
each of 16-bits BX can be used as BH and BL
CX can be used as CH and CL
07-Feb-19 31
DX can be used as DH and DL
ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION
EU Registers
EU Accumulator Register (AX)
Registers
Consists of two 8-bit registers AL and AH, which can be
combined together and used as a 16-bit register AX.
AL in this case contains the low order byte of the word, and
AH contains the high-order byte.
07-Feb-19 32
07-Feb-19 33
Example:
07-Feb-19 34
07-Feb-19 35
07-Feb-19 36
07-Feb-19 37
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
AX 16-bit Accumulator Stores the 16-bit results of arithmetic and logic operations
AL 8-bit Accumulator Stores the 8-bit results of arithmetic and logic operations
BX Base register Used to hold base value in base addressing mode to access
memory data
CX Count Register Used to hold the count value in SHIFT, ROTATE and LOOP
instructions
DX Data Register Used to hold data for multiplication and division operations
SP Stack Pointer Used to hold the offset address of top stack memory
BP Base Pointer Used to hold the base value in base addressing using SS
register to access data from stack memory
SI Source Index Used to hold index value of source operand (data) for string
instructions
DI Data Index Used to hold the index value of destination operand (data) for
string operations
07-Feb-19 39
07-Feb-19 41
07-Feb-19 42
07-Feb-19 43
07-Feb-19 44
Questions???
7-Feb-19 45