SlideShare a Scribd company logo
INTEL 8086 
MICROPROCESSOR 
Suresh.P 
HOD / ECE 
Royal College of Engineering and Technology 
Chiramanangad PO, Akkikkavu
MODULE 
1 & 2 
Complete idea about INTEL 8086 
Microprocessor
Topics to be covered 
1. Software Architecture of the INTEL 8086. 
2. Hardware Architecture of INTEL 8086. 
3. 8086 Programming and program development. 
RCET Microprocessor & Microcontroller 3
Software architecture of the INTEL 
8086 
 Memory segmentation and addressing 
 Block diagram of 8086 
 Address space & Data organization 
 Data Types 
 Registers 
 Stack 
 I/O space 
RCET Microprocessor & Microcontroller 4
Hardware Architecture of INTEL 8086 
 Pin Diagram and Pin Details 
 min/max mode 
 Coprocessor and Multiprocessor configuration 
 Hardware organization of address space 
 Control signals 
 I/O interfaces 
RCET Microprocessor & Microcontroller 5
8086 programming and program 
development. 
 Assembly Language Programming. 
 Instruction Set. 
 Assembler Directives. 
 Programming Exercises. 
RCET Microprocessor & Microcontroller 6
Software Architecture 
of 
INTEL 8086 
RCET Microprocessor & Microcontroller 7
Software architecture of the INTEL 
8086 
 Memory segmentation and addressing 
 Block diagram of 8086 
 Address space & Data organization 
 Data Types 
 Registers 
 Stack 
 I/O space 
RCET Microprocessor & Microcontroller 8
Memory segmentation and addressing 
• Von – Newman architecture & Harvard architecture 
• Program Memory & Data Memory 
• Need for Segmentation 
– To implement Harvard architecture 
– Easy to debug 
– Same Interfacing ICs can be used 
– To avoid overlap of stack with normal memory 
– Compatible with 8085 
RCET Microprocessor & Microcontroller 9
Segmented Memory 
RCET Microprocessor & Microcontroller 10
Memory Address Generation 
• The BIU has a dedicated adder for determining 
physical memory addresses. 
Offset Value (16 bits) 
Segment Register (16 bits) 0 0 0 0 
Adder 
Physical Address (20 Bits) 
RCET Microprocessor & Microcontroller 11
Segment : Offset Address 
• Logical Address is specified as segment:offset 
• Physical address is obtained by shifting the segment 
address 4 bits to the left and adding the offset address. 
• Thus the physical address of the logical address 
A4FB:4872 is: 
A4FB0 
+ 4872 
A9822 
RCET Microprocessor & Microcontroller 12
Segments, Segment Registers & Offset 
Registers 
• Segment Size = 64KB 
• Maximum number of segments possible = 14 
• Logical Address – 16 bits 
• Physical Address – 20 bits 
• 2 Logical Addresses for each Segments. 
– Base Address (16 bits) 
– Offset Address (16 bits) 
• Segment registers are used to store the Base address of 
the segment. 
RCET Microprocessor & Microcontroller 13
Segments, Segment Registers & Offset 
Registers 
• 4 Segments in 8086 
– Code Segment (CS) 
– Data Segment (DS) 
– Stack Segment (SS) 
– Extra Segment (ES) 
SEGMENT SEGMENT 
REGISTER 
OFFSET REGISTER 
Code Segment CSR Instruction Pointer 
(IP) 
Data Segment DSR Source Index (SI) 
Extra Segment ESR Destination Index 
(DI) 
Stack Segment SSR Stack Pointer (SP) / 
Base Pointer (BP) 
RCET Microprocessor & Microcontroller 14
Block diagram of 8086 
RCET Microprocessor & Microcontroller 15
Pipelined architecture of the 8086 
microprocessors 
RCET Microprocessor & Microcontroller 16
Execution and bus interface units 
RCET Microprocessor & Microcontroller 17
Software Model of the 8086 Microprocessors 
RCET Microprocessor & Microcontroller 18
Address space & Data organization 
Memory address space 
Storing a word in memory 
What is the word in (b) in Hex? 
RCET Microprocessor & Microcontroller 19
Aligned and misaligned data word 
RCET Microprocessor & Microcontroller 20
Aligned and misaligned double words of data 
RCET Microprocessor & Microcontroller 21
Storing double word in memory 
RCET Microprocessor & Microcontroller 22
Data Types 
Unsigned word integer 
0 – 65,535 
Unsigned byte 
integer 
0 - 255 
RCET Microprocessor & Microcontroller 23
Data Types 
Signed 
integers 
-128 - +127 
-32,768 - +32,767 
RCET Microprocessor & Microcontroller 24
Data Types 
Binary Coded 
Decimal (BCD) 
Unpacked BCD 
Packed BCD 
RCET Microprocessor & Microcontroller 25
American Standard Code for Information Interchange 
(ASCII) 
RCET Microprocessor & Microcontroller 26
Dedicated, Reserved, and General use 
Memory 
RCET Microprocessor & Microcontroller 27
8086 Registers 
Index 
BP 
SP 
SI 
DI 
Segment 
CS 
SS 
DS 
ES 
General Purpose 
AH 
BH 
CH 
AL 
BL 
CL 
DH DL 
Status and Control 
Flags 
IP 
AX 
BX 
CX 
DX 
RCET Microprocessor & Microcontroller 28
General Purpose Registers 
AX - the Accumulator 
BX - the Base Register 
CX - the Count Register 
DX - the Data Register 
• Normally used for storing temporary results 
• Each of the registers is 16 bits wide (AX, BX, CX, DX) 
• Can be accessed as either 16 or 8 bits AX, AH, AL 
RCET Microprocessor & Microcontroller 29
General Purpose Registers 
• AX 
– Accumulator Register 
– Preferred register to use in arithmetic, logic and data 
transfer instructions because it generates the shortest 
Machine Language Code 
– Must be used in multiplication and division 
operations 
– Must also be used in I/O operations 
• BX 
– Base Register 
– Also serves as an address register 
RCET Microprocessor & Microcontroller 30
General Purpose Registers 
• CX 
– Count register 
– Used as a loop counter 
– Used in shift and rotate operations 
• DX 
– Data register 
– Used in multiplication and division 
– Also used in I/O operations 
RCET Microprocessor & Microcontroller 31
Pointer and Index Registers 
• All 16 bits wide, L/H bytes are not accessible 
• Used as memory pointers 
– Example: MOV AH, [SI] 
• Move the byte stored in memory location whose address is contained in 
register SI to register AH 
• IP is not under direct control of the programmer 
RCET Microprocessor & Microcontroller 32
Flag Register 
Carry 
Parity 
Auxiliary Carry 
Zero 
Overflow 
Direction 
Interrupt enable 
Trap 
Sign 
6 are status flags 
3 are control flag 
RCET Microprocessor & Microcontroller 33
8086 Programmer’s Model 
ES 
CS 
SS 
DS 
IP 
AH 
BH 
CH 
DH 
AL 
BL 
CL 
DL 
SP 
BP 
SI 
DI 
FLAGS 
AX 
BX 
CX 
DX 
Extra Segment 
Code Segment 
Stack Segment 
Data Segment 
Instruction Pointer 
Accumulator 
Base Register 
Count Register 
Data Register 
Stack Pointer 
Base Pointer 
Source Index Register 
Destination Index Register 
BIU registers 
(20 bit adder) 
EU registers 
RCET Microprocessor & Microcontroller 34
The Stack 
• The stack is used for temporary storage of information 
such as data or addresses. 
• When a CALL is executed, the 8086 automatically PUSHes 
the current value of CS and IP onto the stack. 
• Other registers can also be pushed 
• Before return from the subroutine, POP instructions can 
be used to pop values back from the stack into the 
corresponding registers. 
RCET Microprocessor & Microcontroller 35
The Stack 
RCET Microprocessor & Microcontroller 36
Example for PUSH 
RCET Microprocessor & Microcontroller 37
Example for POP 
RCET Microprocessor & Microcontroller 38
The I/O address space 
RCET Microprocessor & Microcontroller 39
Hardware Architecture 
of 
INTEL 8086 
RCET Microprocessor & Microcontroller 40
Hardware Architecture of INTEL 8086 
 Pin Diagram and Pin Details 
 min/max mode 
 Coprocessor and Multiprocessor configuration 
 Hardware organization of address space 
 Control signals 
 I/O interfaces 
RCET Microprocessor & Microcontroller 41
INTEL 8086 - Pin Diagram 
RCET Microprocessor & Microcontroller 42
INTEL 8086 - Pin Details 
Ground 
Clock 
Duty cycle: 33% 
Power Supply 
5V  10% 
Reset 
Registers, seg 
regs, flags 
CS: FFFFH, IP: 
0000H 
If high for 
minimum 4 
clks 
RCET Microprocessor & Microcontroller 43
INTEL 8086 - Pin Details 
Address/Data Bus: 
Contains address 
bits A15-A0 when ALE 
is 1 & data bits D15 – 
D0 when ALE is 0. 
Address Latch Enable: 
When high, 
multiplexed 
address/data bus 
contains address 
information. 
RCET Microprocessor & Microcontroller 44
INTEL 8086 - Pin Details 
INTERRUPT 
Non - maskable 
interrupt 
Interrupt request 
Interrupt 
acknowledge 
RCET Microprocessor & Microcontroller 45
INTEL 8086 - Pin Details 
Direct 
Memory 
Access 
Hold 
Hold 
acknowledge 
RCET Microprocessor & Microcontroller 46
INTEL 8086 - Pin Details 
Address/Status Bus 
Address bits A19 – 
A16 & Status bits S6 
– S3 
RCET Microprocessor & Microcontroller 47
INTEL 8086 - Pin Details 
Bus High Enable/S7 
Enables most 
significant data bits 
D15 – D8 during read 
or write operation. 
S7: Always 1. 
BHE#, A0: 
0,0: Whole word 
(16-bits) 
0,1: High byte 
to/from odd address 
1,0: Low byte 
to/from even address 
1,1: No selection 
RCET Microprocessor & Microcontroller 48
INTEL 8086 - Pin Details 
Min/Max mode 
Minimum Mode: +5V 
Maximum Mode: 0V 
Minimum Mode Pins 
Maximum Mode 
Pins 
RCET Microprocessor & Microcontroller 49
Minimum Mode- Pin Details 
Data 
Transmit/Receive 
RCET Microprocessor & Microcontroller 
50 
Read Signal 
Write Signal 
Memory or I/0 
Data Bus Enable
Maximum Mode - Pin Details 
Status Signal 
Inputs to 8288 to 
generate eliminated 
signals due to max 
mode. 
S2 S1 S0 
000: INTA 
001: read I/O port 
010: write I/O port 
011: halt 
100: code access 
101: read memory 
110: write memory 
111: none -passive 
RCET Microprocessor & Microcontroller 51
Maximum Mode - Pin Details 
DMA 
Request/Grant 
Lock Output 
Lock Output 
Used to lock peripherals 
off the system 
Activated by using the 
LOCK: prefix on any 
instruction 
RCET Microprocessor & Microcontroller 52
Maximum Mode - Pin Details 
Queue Status 
Used by numeric 
coprocessor (8087) 
QS1 QS0 
00: Queue is idle 
01: First byte of opcode 
10: Queue is empty 
11: Subsequent byte of 
opcode 
RCET Microprocessor & Microcontroller 53
Minimum Mode 8086 System 
RCET Microprocessor & Microcontroller 54
Minimum Mode 8086 System 
RCET Microprocessor & Microcontroller 55
‘Read’ Cycle timing Diagram for 
Minimum Mode 
RCET Microprocessor & Microcontroller 56
‘Write’ Cycle timing Diagram for 
Minimum Mode 
RCET Microprocessor & Microcontroller 57
Maximum Mode 8086 System 
RCET Microprocessor & Microcontroller 58
Maximum Mode 8086 System 
RCET Microprocessor & Microcontroller 59
Maximum Mode 8086 System 
• Here, either a numeric coprocessor of the type 8087 or another 
processor is interfaced with 8086. 
• The Memory, Address Bus, Data Buses are shared resources 
between the two processors. 
• The control signals for Maximum mode of operation are 
generated by the Bus Controller chip 8788. 
• The three status outputs S0*, S1*, S2* from the processor are 
input to 8788. 
• The outputs of the bus controller are the Control Signals, namely 
DEN, DT/R*, IORC*, IOWTC*, MWTC*, MRDC*, ALE etc. 
RCET Microprocessor & Microcontroller 60
Memory Read timing in 
Maximum Mode 
RCET Microprocessor & Microcontroller 61
Memory Write timing in 
Maximum Mode 
RCET Microprocessor & Microcontroller 62
Memory Banking 
RCET Microprocessor & Microcontroller 63
Interface 8086 to 6116 Static RAM 
64 
A 
____ 
BHE 
ALE 
8086 
A(10-0) 
D(7-0) 
__ 
R/W 
OE* 
CS* 
A(10-0) 
__ 
R/W 
OE* 
CS* 
D 
D(7-0) 
20 
Latch 
Addr 
Decoder 
A(11-1) 
21 
A0, BHE* 
A(19-12) 
A(11-1) 
__ 
M/___ 
IO 
WR 
___ 
RD 
Low byte 
(Even Bank) 
D(7-0) 
D(15-8) 
16 
A0 
RAMCS* 
MEM* 
BHE* 
6116 (2K x8) 
High byte 
(Odd Bank)
8086 Interrupts 
RCET Microprocessor & Microcontroller 65
8086 Interrupts Procedure 
RCET Microprocessor & Microcontroller 66
8086 External Interrupts 
RCET Microprocessor & Microcontroller 67
8086 Interrupt Vector Table 
RCET Microprocessor & Microcontroller 68
8086 Interrupt Vector Table 
RCET Microprocessor & Microcontroller 69
Programming 
with 
INTEL 8086 
RCET Microprocessor & Microcontroller 70
8086 programming and program 
development. 
 Assembly Language Programming. 
 Instruction Set. 
 Assembler Directives. 
 Programming Exercises. 
RCET Microprocessor & Microcontroller 71
General Syntax 
RCET Microprocessor & Microcontroller 72
General Syntax 
RCET Microprocessor & Microcontroller 73
x86 Instruction Set Summary 
(Data Transfer) 
1. CBW ;Convert Byte to Word AL  AX 
2. CWD ;Convert Word to Double in AX DX,AX 
3. IN ;Input 
4. LAHF ;Load AH from Flags 
5. LDS ;Load pointer to DS 
6. LEA ;Load EA to register 
7. LES ;Load pointer to ES 
8. LODS ;Load memory at SI into AX 
9. MOV ;Move 
10. MOVS ;Move memory at SI to DI 
11. OUT ;Output 
12. POP ;Pop 
13. POPF ;Pop Flags 
14. PUSH ;Push 
15. PUSHF ;Push Flags 
16. SAHF ;Store AH into Flags 
17. STOS ;Store AX into memory at DI 
18. XCHG ;Exchange 
19. XLAT ;Translate byte to AL 
RCET Microprocessor & Microcontroller 74
x86 Instruction Set Summary 
(Arithmetic/Logical) 
1. AAA ;ASCII Adjust for Add in AX 
2. AAD ;ASCII Adjust for Divide in AX 
3. AAM ;ASCII Adjust for Multiply in AX 
4. AAS ;ASCII Adjust for Subtract in AX 
5. ADC ;Add with Carry 
6. ADD ;Add 
7. AND ;Logical AND 
8. CMC ;Complement Carry 
9. CMP ;Compare 
10. CMPS ;Compare memory at SI and DI 
11. DAA ;Decimal Adjust for Add in AX 
12. DAS ;Decimal Adjust for Subtract in AX 
13. DEC ;Decrement 
14. DIV ;Divide (unsigned) in AX(,DX) 
15. IDIV ;Divide (signed) in AX(,DX) 
16. MUL ;Multiply (unsigned) in AX(,DX) 
17. IMUL ;Multiply (signed) in AX(,DX) 
18. INC ;Increment 
RCET Microprocessor & Microcontroller 75
x86 Instruction Set Summary 
(Arithmetic/Logical Cont.) 
19. NEG ;Negate 
20. NOT ;Logical NOT 
21. OR ;Logical inclusive OR 
22. RCL ;Rotate through Carry Left 
23. RCR ;Rotate through Carry Right 
24. ROL ;Rotate Left 
25. ROR ;Rotate Right 
26. SAR ;Shift Arithmetic Right 
27. SBB ;Subtract with Borrow 
28. SCAS ;Scan memory at DI compared to AX 
29. SHL/SAL ;Shift logical/Arithmetic Left 
30. SHR ;Shift logical Right 
31. SUB ;Subtract 
32. TEST ;AND function to flags 
33. XLAT ;Translate byte to AL 
34. XOR ;Logical Exclusive OR 
RCET Microprocessor & Microcontroller 76
x86 Instruction Set Summary 
(Control/Branch) 
1. CALL ;Call 
2. CLC ;Clear Carry 
3. CLD ;Clear Direction 
4. CLI ;Clear Interrupt 
5. ESC ;Escape (to external device) 
6. HLT ;Halt 
7. INT ;Interrupt 
8. INTO ;Interrupt on Overflow 
9. IRET ;Interrupt Return 
10. JB/JNAE ;Jump on Below/Not Above or Equal 
11. JBE/JNA ;Jump on Below or Equal/Not Above 
12. JCXZ ;Jump on CX Zero 
13. JE/JZ ;Jump on Equal/Zero 
14. JL/JNGE ;Jump on Less/Not Greater or Equal 
15. JLE/JNG ;Jump on Less or Equal/Not Greater 
16. JMP ;Unconditional Jump 
RCET Microprocessor & Microcontroller 77
x86 Instruction Set Summary 
(Control/Branch Cont.) 
17. JNB/JAE ;Jump on Not Below/Above or Equal 
18. JNBE/JA ;Jump on Not Below or Equal/Above 
19. JNE/JNZ ;Jump on Not Equal/Not Zero 
20. JNL/JGE ;Jump on Not Less/Greater or Equal 
21. JNLE/JG ;Jump on Not Less or Equal/Greater 
22. JNO ;Jump on Not Overflow 
23. JNP/JPO ;Jump on Not Parity/Parity Odd 
24. JNS ;Jump on Not Sign 
25. JO ;Jump on Overflow 
26. JP/JPE ;Jump on Parity/Parity Even 
27. JS ;Jump on Sign 
28. LOCK ;Bus Lock prefix 
29. LOOP ;Loop CX times 
30. LOOPNZ/LOOPNE ;Loop while Not Zero/Not Equal 
31. LOOPZ/LOOPE ;Loop while Zero/Equal 
32. NOP ;No Operation (= XCHG AX,AX) 
RCET Microprocessor & Microcontroller 78
x86 Instruction Set Summary 
(Control/Branch Cont.) 
33. REP/REPNE/REPNZ ;Repeat/Repeat Not Equal/Not Zero 
34. REPE/REPZ ;Repeat Equal/Zero 
35. RET ;Return from call 
36. SEG ;Segment register 
37. STC ;Set Carry 
38. STD ;Set Direction 
39. STI ;Set Interrupt 
40. TEST ;AND function to flags 
41. WAIT ;Wait 
RCET Microprocessor & Microcontroller 79
8086 Instruction set Summary 
RCET Microprocessor & Microcontroller 80
8086 Instruction set Summary 
RCET Microprocessor & Microcontroller 81
8086 Instruction set Summary 
RCET Microprocessor & Microcontroller 82
8086 Assembler Directives 
1. end label end of program, label is entry point 
2. proc far|near begin a procedure; far, near keywords specify 
if the procedure is in different code segment 
(far), or same code segment (near) 
3. endp end of procedure 
4. page set a page format for the listing file 
5. title title of the listing file 
6. .code mark start of code segment 
RCET Microprocessor & Microcontroller 83
8086 Assembler Directives 
7. .data mark start of data segment 
8. .stack set size of stack segment 
9. db define byte 
10. dw define word (2 bytes) 
11. dd define double word (4 bytes) 
12. dq define quadword (8 bytes) 
13. dt define tenbytes 
14. equ equate, assign numeric expression to a name 
RCET Microprocessor & Microcontroller 84
RCET Microprocessor & Microcontroller 85

More Related Content

What's hot

Functions and tasks in verilog
Functions and tasks in verilogFunctions and tasks in verilog
Functions and tasks in verilog
Nallapati Anindra
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
I/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architectureI/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architecture
kavitha muneeshwaran
 
Pci,usb,scsi bus
Pci,usb,scsi busPci,usb,scsi bus
Pci,usb,scsi bus
Sherwin Rodrigues
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsRam Babu
 
axi protocol
axi protocolaxi protocol
axi protocol
Azad Mishra
 
Short Channel Effect In MOSFET
Short Channel Effect In MOSFETShort Channel Effect In MOSFET
Short Channel Effect In MOSFET
Sudhanshu Srivastava
 
Assembly Language and microprocessor
Assembly Language and microprocessorAssembly Language and microprocessor
Assembly Language and microprocessor
Khaled Sany
 
80386
8038680386
Advance Peripheral Bus
Advance Peripheral Bus Advance Peripheral Bus
Advance Peripheral Bus
SIVA NAGENDRA REDDY
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
Albin Panakkal
 
Modes of 80386
Modes of 80386Modes of 80386
Modes of 80386aviban
 
Data Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search TreeData Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search Tree
ManishPrajapati78
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
Mathivanan Natarajan
 
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET Journal
 
Microprocessor and Interfacing Notes
Microprocessor and Interfacing NotesMicroprocessor and Interfacing Notes
Microprocessor and Interfacing Notes
Akshansh Chaudhary
 
Kernighan lin
Kernighan linKernighan lin
Kernighan lin
Tanvi Prabhu Dessai
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDL
anand hd
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
Pantech ProLabs India Pvt Ltd
 

What's hot (20)

Functions and tasks in verilog
Functions and tasks in verilogFunctions and tasks in verilog
Functions and tasks in verilog
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
8085 lab
8085 lab8085 lab
8085 lab
 
I/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architectureI/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architecture
 
Pci,usb,scsi bus
Pci,usb,scsi busPci,usb,scsi bus
Pci,usb,scsi bus
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
axi protocol
axi protocolaxi protocol
axi protocol
 
Short Channel Effect In MOSFET
Short Channel Effect In MOSFETShort Channel Effect In MOSFET
Short Channel Effect In MOSFET
 
Assembly Language and microprocessor
Assembly Language and microprocessorAssembly Language and microprocessor
Assembly Language and microprocessor
 
80386
8038680386
80386
 
Advance Peripheral Bus
Advance Peripheral Bus Advance Peripheral Bus
Advance Peripheral Bus
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
Modes of 80386
Modes of 80386Modes of 80386
Modes of 80386
 
Data Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search TreeData Structure and Algorithms Binary Search Tree
Data Structure and Algorithms Binary Search Tree
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
 
Microprocessor and Interfacing Notes
Microprocessor and Interfacing NotesMicroprocessor and Interfacing Notes
Microprocessor and Interfacing Notes
 
Kernighan lin
Kernighan linKernighan lin
Kernighan lin
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDL
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 

Viewers also liked

Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
George Thomas
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
Poojith Chowdhary
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
Gopikrishna Madanan
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
AJAL A J
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
Rafi Dar
 
instruction set of 8086
instruction set of 8086instruction set of 8086
instruction set of 8086
muneer.k
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
Ashita Agrawal
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorNikhil Kumar
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
Gurudev joshi
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
prasadpawaskar
 
Icws
IcwsIcws
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
Akhila Rahul
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architectureSaurabh Jain
 
Introduction to intel 8086 part1
Introduction to intel 8086 part1Introduction to intel 8086 part1
Introduction to intel 8086 part1
Shehrevar Davierwala
 
Microprocessor 8086 instructions
Microprocessor 8086 instructionsMicroprocessor 8086 instructions
Microprocessor 8086 instructions
Ravi Anand
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSOR
Sagar Kuntumal
 

Viewers also liked (20)

8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
 
instruction set of 8086
instruction set of 8086instruction set of 8086
instruction set of 8086
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
Icws
IcwsIcws
Icws
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
 
Lecture2
Lecture2Lecture2
Lecture2
 
Introduction to intel 8086 part1
Introduction to intel 8086 part1Introduction to intel 8086 part1
Introduction to intel 8086 part1
 
Microprocessor 8086 instructions
Microprocessor 8086 instructionsMicroprocessor 8086 instructions
Microprocessor 8086 instructions
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSOR
 
Microprocessor systems 8085
Microprocessor systems 8085Microprocessor systems 8085
Microprocessor systems 8085
 

Similar to 8086 module 1 & 2 work

8086 architecture-unit-1
8086 architecture-unit-18086 architecture-unit-1
8086 architecture-unit-1
logesh.ieee
 
Management of system software
Management of system softwareManagement of system software
Management of system software
AryaChandran13
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
SManjula2
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
15CS44 MP & MC Module 1
15CS44 MP & MC Module 115CS44 MP & MC Module 1
15CS44 MP & MC Module 1
RLJIT
 
Module 1 8086
Module 1 8086Module 1 8086
Module 1 8086
Deepak John
 
8086_architecture-1 detailed analysis in easy language
8086_architecture-1 detailed analysis in easy language8086_architecture-1 detailed analysis in easy language
8086_architecture-1 detailed analysis in easy language
samanthaargent21
 
Students corner131
Students corner131Students corner131
Students corner131
Satti286
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year
Bharghavteja1
 
Motorola 68020.pdf
Motorola 68020.pdfMotorola 68020.pdf
Motorola 68020.pdf
ArijitDhali
 
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioUnit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Manikanta Reddy Sakam
 
Introduction to 8086 Microprocessors.ppt
Introduction to 8086 Microprocessors.pptIntroduction to 8086 Microprocessors.ppt
Introduction to 8086 Microprocessors.ppt
SasiBhushan22
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
Sanjay164567
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
ssuserbe76c3
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
HarshShah659
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
ChagantiSahith
 
microprocessor 8085
microprocessor 8085microprocessor 8085
microprocessor 8085
Shivanshu Purwar
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
jhcid
 
Assembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxAssembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptx
VickyThakur61
 

Similar to 8086 module 1 & 2 work (20)

8086 architecture-unit-1
8086 architecture-unit-18086 architecture-unit-1
8086 architecture-unit-1
 
Management of system software
Management of system softwareManagement of system software
Management of system software
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
15CS44 MP & MC Module 1
15CS44 MP & MC Module 115CS44 MP & MC Module 1
15CS44 MP & MC Module 1
 
Module 1 8086
Module 1 8086Module 1 8086
Module 1 8086
 
8086_architecture-1 detailed analysis in easy language
8086_architecture-1 detailed analysis in easy language8086_architecture-1 detailed analysis in easy language
8086_architecture-1 detailed analysis in easy language
 
Students corner131
Students corner131Students corner131
Students corner131
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year
 
Motorola 68020.pdf
Motorola 68020.pdfMotorola 68020.pdf
Motorola 68020.pdf
 
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioUnit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqio
 
Introduction to 8086 Microprocessors.ppt
Introduction to 8086 Microprocessors.pptIntroduction to 8086 Microprocessors.ppt
Introduction to 8086 Microprocessors.ppt
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.ppt
 
microprocessor 8085
microprocessor 8085microprocessor 8085
microprocessor 8085
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
Assembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxAssembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptx
 

Recently uploaded

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Steel & Timber Design according to British Standard
Steel & Timber Design according to British StandardSteel & Timber Design according to British Standard
Steel & Timber Design according to British Standard
AkolbilaEmmanuel1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 

Recently uploaded (20)

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Steel & Timber Design according to British Standard
Steel & Timber Design according to British StandardSteel & Timber Design according to British Standard
Steel & Timber Design according to British Standard
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 

8086 module 1 & 2 work

  • 1. INTEL 8086 MICROPROCESSOR Suresh.P HOD / ECE Royal College of Engineering and Technology Chiramanangad PO, Akkikkavu
  • 2. MODULE 1 & 2 Complete idea about INTEL 8086 Microprocessor
  • 3. Topics to be covered 1. Software Architecture of the INTEL 8086. 2. Hardware Architecture of INTEL 8086. 3. 8086 Programming and program development. RCET Microprocessor & Microcontroller 3
  • 4. Software architecture of the INTEL 8086  Memory segmentation and addressing  Block diagram of 8086  Address space & Data organization  Data Types  Registers  Stack  I/O space RCET Microprocessor & Microcontroller 4
  • 5. Hardware Architecture of INTEL 8086  Pin Diagram and Pin Details  min/max mode  Coprocessor and Multiprocessor configuration  Hardware organization of address space  Control signals  I/O interfaces RCET Microprocessor & Microcontroller 5
  • 6. 8086 programming and program development.  Assembly Language Programming.  Instruction Set.  Assembler Directives.  Programming Exercises. RCET Microprocessor & Microcontroller 6
  • 7. Software Architecture of INTEL 8086 RCET Microprocessor & Microcontroller 7
  • 8. Software architecture of the INTEL 8086  Memory segmentation and addressing  Block diagram of 8086  Address space & Data organization  Data Types  Registers  Stack  I/O space RCET Microprocessor & Microcontroller 8
  • 9. Memory segmentation and addressing • Von – Newman architecture & Harvard architecture • Program Memory & Data Memory • Need for Segmentation – To implement Harvard architecture – Easy to debug – Same Interfacing ICs can be used – To avoid overlap of stack with normal memory – Compatible with 8085 RCET Microprocessor & Microcontroller 9
  • 10. Segmented Memory RCET Microprocessor & Microcontroller 10
  • 11. Memory Address Generation • The BIU has a dedicated adder for determining physical memory addresses. Offset Value (16 bits) Segment Register (16 bits) 0 0 0 0 Adder Physical Address (20 Bits) RCET Microprocessor & Microcontroller 11
  • 12. Segment : Offset Address • Logical Address is specified as segment:offset • Physical address is obtained by shifting the segment address 4 bits to the left and adding the offset address. • Thus the physical address of the logical address A4FB:4872 is: A4FB0 + 4872 A9822 RCET Microprocessor & Microcontroller 12
  • 13. Segments, Segment Registers & Offset Registers • Segment Size = 64KB • Maximum number of segments possible = 14 • Logical Address – 16 bits • Physical Address – 20 bits • 2 Logical Addresses for each Segments. – Base Address (16 bits) – Offset Address (16 bits) • Segment registers are used to store the Base address of the segment. RCET Microprocessor & Microcontroller 13
  • 14. Segments, Segment Registers & Offset Registers • 4 Segments in 8086 – Code Segment (CS) – Data Segment (DS) – Stack Segment (SS) – Extra Segment (ES) SEGMENT SEGMENT REGISTER OFFSET REGISTER Code Segment CSR Instruction Pointer (IP) Data Segment DSR Source Index (SI) Extra Segment ESR Destination Index (DI) Stack Segment SSR Stack Pointer (SP) / Base Pointer (BP) RCET Microprocessor & Microcontroller 14
  • 15. Block diagram of 8086 RCET Microprocessor & Microcontroller 15
  • 16. Pipelined architecture of the 8086 microprocessors RCET Microprocessor & Microcontroller 16
  • 17. Execution and bus interface units RCET Microprocessor & Microcontroller 17
  • 18. Software Model of the 8086 Microprocessors RCET Microprocessor & Microcontroller 18
  • 19. Address space & Data organization Memory address space Storing a word in memory What is the word in (b) in Hex? RCET Microprocessor & Microcontroller 19
  • 20. Aligned and misaligned data word RCET Microprocessor & Microcontroller 20
  • 21. Aligned and misaligned double words of data RCET Microprocessor & Microcontroller 21
  • 22. Storing double word in memory RCET Microprocessor & Microcontroller 22
  • 23. Data Types Unsigned word integer 0 – 65,535 Unsigned byte integer 0 - 255 RCET Microprocessor & Microcontroller 23
  • 24. Data Types Signed integers -128 - +127 -32,768 - +32,767 RCET Microprocessor & Microcontroller 24
  • 25. Data Types Binary Coded Decimal (BCD) Unpacked BCD Packed BCD RCET Microprocessor & Microcontroller 25
  • 26. American Standard Code for Information Interchange (ASCII) RCET Microprocessor & Microcontroller 26
  • 27. Dedicated, Reserved, and General use Memory RCET Microprocessor & Microcontroller 27
  • 28. 8086 Registers Index BP SP SI DI Segment CS SS DS ES General Purpose AH BH CH AL BL CL DH DL Status and Control Flags IP AX BX CX DX RCET Microprocessor & Microcontroller 28
  • 29. General Purpose Registers AX - the Accumulator BX - the Base Register CX - the Count Register DX - the Data Register • Normally used for storing temporary results • Each of the registers is 16 bits wide (AX, BX, CX, DX) • Can be accessed as either 16 or 8 bits AX, AH, AL RCET Microprocessor & Microcontroller 29
  • 30. General Purpose Registers • AX – Accumulator Register – Preferred register to use in arithmetic, logic and data transfer instructions because it generates the shortest Machine Language Code – Must be used in multiplication and division operations – Must also be used in I/O operations • BX – Base Register – Also serves as an address register RCET Microprocessor & Microcontroller 30
  • 31. General Purpose Registers • CX – Count register – Used as a loop counter – Used in shift and rotate operations • DX – Data register – Used in multiplication and division – Also used in I/O operations RCET Microprocessor & Microcontroller 31
  • 32. Pointer and Index Registers • All 16 bits wide, L/H bytes are not accessible • Used as memory pointers – Example: MOV AH, [SI] • Move the byte stored in memory location whose address is contained in register SI to register AH • IP is not under direct control of the programmer RCET Microprocessor & Microcontroller 32
  • 33. Flag Register Carry Parity Auxiliary Carry Zero Overflow Direction Interrupt enable Trap Sign 6 are status flags 3 are control flag RCET Microprocessor & Microcontroller 33
  • 34. 8086 Programmer’s Model ES CS SS DS IP AH BH CH DH AL BL CL DL SP BP SI DI FLAGS AX BX CX DX Extra Segment Code Segment Stack Segment Data Segment Instruction Pointer Accumulator Base Register Count Register Data Register Stack Pointer Base Pointer Source Index Register Destination Index Register BIU registers (20 bit adder) EU registers RCET Microprocessor & Microcontroller 34
  • 35. The Stack • The stack is used for temporary storage of information such as data or addresses. • When a CALL is executed, the 8086 automatically PUSHes the current value of CS and IP onto the stack. • Other registers can also be pushed • Before return from the subroutine, POP instructions can be used to pop values back from the stack into the corresponding registers. RCET Microprocessor & Microcontroller 35
  • 36. The Stack RCET Microprocessor & Microcontroller 36
  • 37. Example for PUSH RCET Microprocessor & Microcontroller 37
  • 38. Example for POP RCET Microprocessor & Microcontroller 38
  • 39. The I/O address space RCET Microprocessor & Microcontroller 39
  • 40. Hardware Architecture of INTEL 8086 RCET Microprocessor & Microcontroller 40
  • 41. Hardware Architecture of INTEL 8086  Pin Diagram and Pin Details  min/max mode  Coprocessor and Multiprocessor configuration  Hardware organization of address space  Control signals  I/O interfaces RCET Microprocessor & Microcontroller 41
  • 42. INTEL 8086 - Pin Diagram RCET Microprocessor & Microcontroller 42
  • 43. INTEL 8086 - Pin Details Ground Clock Duty cycle: 33% Power Supply 5V  10% Reset Registers, seg regs, flags CS: FFFFH, IP: 0000H If high for minimum 4 clks RCET Microprocessor & Microcontroller 43
  • 44. INTEL 8086 - Pin Details Address/Data Bus: Contains address bits A15-A0 when ALE is 1 & data bits D15 – D0 when ALE is 0. Address Latch Enable: When high, multiplexed address/data bus contains address information. RCET Microprocessor & Microcontroller 44
  • 45. INTEL 8086 - Pin Details INTERRUPT Non - maskable interrupt Interrupt request Interrupt acknowledge RCET Microprocessor & Microcontroller 45
  • 46. INTEL 8086 - Pin Details Direct Memory Access Hold Hold acknowledge RCET Microprocessor & Microcontroller 46
  • 47. INTEL 8086 - Pin Details Address/Status Bus Address bits A19 – A16 & Status bits S6 – S3 RCET Microprocessor & Microcontroller 47
  • 48. INTEL 8086 - Pin Details Bus High Enable/S7 Enables most significant data bits D15 – D8 during read or write operation. S7: Always 1. BHE#, A0: 0,0: Whole word (16-bits) 0,1: High byte to/from odd address 1,0: Low byte to/from even address 1,1: No selection RCET Microprocessor & Microcontroller 48
  • 49. INTEL 8086 - Pin Details Min/Max mode Minimum Mode: +5V Maximum Mode: 0V Minimum Mode Pins Maximum Mode Pins RCET Microprocessor & Microcontroller 49
  • 50. Minimum Mode- Pin Details Data Transmit/Receive RCET Microprocessor & Microcontroller 50 Read Signal Write Signal Memory or I/0 Data Bus Enable
  • 51. Maximum Mode - Pin Details Status Signal Inputs to 8288 to generate eliminated signals due to max mode. S2 S1 S0 000: INTA 001: read I/O port 010: write I/O port 011: halt 100: code access 101: read memory 110: write memory 111: none -passive RCET Microprocessor & Microcontroller 51
  • 52. Maximum Mode - Pin Details DMA Request/Grant Lock Output Lock Output Used to lock peripherals off the system Activated by using the LOCK: prefix on any instruction RCET Microprocessor & Microcontroller 52
  • 53. Maximum Mode - Pin Details Queue Status Used by numeric coprocessor (8087) QS1 QS0 00: Queue is idle 01: First byte of opcode 10: Queue is empty 11: Subsequent byte of opcode RCET Microprocessor & Microcontroller 53
  • 54. Minimum Mode 8086 System RCET Microprocessor & Microcontroller 54
  • 55. Minimum Mode 8086 System RCET Microprocessor & Microcontroller 55
  • 56. ‘Read’ Cycle timing Diagram for Minimum Mode RCET Microprocessor & Microcontroller 56
  • 57. ‘Write’ Cycle timing Diagram for Minimum Mode RCET Microprocessor & Microcontroller 57
  • 58. Maximum Mode 8086 System RCET Microprocessor & Microcontroller 58
  • 59. Maximum Mode 8086 System RCET Microprocessor & Microcontroller 59
  • 60. Maximum Mode 8086 System • Here, either a numeric coprocessor of the type 8087 or another processor is interfaced with 8086. • The Memory, Address Bus, Data Buses are shared resources between the two processors. • The control signals for Maximum mode of operation are generated by the Bus Controller chip 8788. • The three status outputs S0*, S1*, S2* from the processor are input to 8788. • The outputs of the bus controller are the Control Signals, namely DEN, DT/R*, IORC*, IOWTC*, MWTC*, MRDC*, ALE etc. RCET Microprocessor & Microcontroller 60
  • 61. Memory Read timing in Maximum Mode RCET Microprocessor & Microcontroller 61
  • 62. Memory Write timing in Maximum Mode RCET Microprocessor & Microcontroller 62
  • 63. Memory Banking RCET Microprocessor & Microcontroller 63
  • 64. Interface 8086 to 6116 Static RAM 64 A ____ BHE ALE 8086 A(10-0) D(7-0) __ R/W OE* CS* A(10-0) __ R/W OE* CS* D D(7-0) 20 Latch Addr Decoder A(11-1) 21 A0, BHE* A(19-12) A(11-1) __ M/___ IO WR ___ RD Low byte (Even Bank) D(7-0) D(15-8) 16 A0 RAMCS* MEM* BHE* 6116 (2K x8) High byte (Odd Bank)
  • 65. 8086 Interrupts RCET Microprocessor & Microcontroller 65
  • 66. 8086 Interrupts Procedure RCET Microprocessor & Microcontroller 66
  • 67. 8086 External Interrupts RCET Microprocessor & Microcontroller 67
  • 68. 8086 Interrupt Vector Table RCET Microprocessor & Microcontroller 68
  • 69. 8086 Interrupt Vector Table RCET Microprocessor & Microcontroller 69
  • 70. Programming with INTEL 8086 RCET Microprocessor & Microcontroller 70
  • 71. 8086 programming and program development.  Assembly Language Programming.  Instruction Set.  Assembler Directives.  Programming Exercises. RCET Microprocessor & Microcontroller 71
  • 72. General Syntax RCET Microprocessor & Microcontroller 72
  • 73. General Syntax RCET Microprocessor & Microcontroller 73
  • 74. x86 Instruction Set Summary (Data Transfer) 1. CBW ;Convert Byte to Word AL  AX 2. CWD ;Convert Word to Double in AX DX,AX 3. IN ;Input 4. LAHF ;Load AH from Flags 5. LDS ;Load pointer to DS 6. LEA ;Load EA to register 7. LES ;Load pointer to ES 8. LODS ;Load memory at SI into AX 9. MOV ;Move 10. MOVS ;Move memory at SI to DI 11. OUT ;Output 12. POP ;Pop 13. POPF ;Pop Flags 14. PUSH ;Push 15. PUSHF ;Push Flags 16. SAHF ;Store AH into Flags 17. STOS ;Store AX into memory at DI 18. XCHG ;Exchange 19. XLAT ;Translate byte to AL RCET Microprocessor & Microcontroller 74
  • 75. x86 Instruction Set Summary (Arithmetic/Logical) 1. AAA ;ASCII Adjust for Add in AX 2. AAD ;ASCII Adjust for Divide in AX 3. AAM ;ASCII Adjust for Multiply in AX 4. AAS ;ASCII Adjust for Subtract in AX 5. ADC ;Add with Carry 6. ADD ;Add 7. AND ;Logical AND 8. CMC ;Complement Carry 9. CMP ;Compare 10. CMPS ;Compare memory at SI and DI 11. DAA ;Decimal Adjust for Add in AX 12. DAS ;Decimal Adjust for Subtract in AX 13. DEC ;Decrement 14. DIV ;Divide (unsigned) in AX(,DX) 15. IDIV ;Divide (signed) in AX(,DX) 16. MUL ;Multiply (unsigned) in AX(,DX) 17. IMUL ;Multiply (signed) in AX(,DX) 18. INC ;Increment RCET Microprocessor & Microcontroller 75
  • 76. x86 Instruction Set Summary (Arithmetic/Logical Cont.) 19. NEG ;Negate 20. NOT ;Logical NOT 21. OR ;Logical inclusive OR 22. RCL ;Rotate through Carry Left 23. RCR ;Rotate through Carry Right 24. ROL ;Rotate Left 25. ROR ;Rotate Right 26. SAR ;Shift Arithmetic Right 27. SBB ;Subtract with Borrow 28. SCAS ;Scan memory at DI compared to AX 29. SHL/SAL ;Shift logical/Arithmetic Left 30. SHR ;Shift logical Right 31. SUB ;Subtract 32. TEST ;AND function to flags 33. XLAT ;Translate byte to AL 34. XOR ;Logical Exclusive OR RCET Microprocessor & Microcontroller 76
  • 77. x86 Instruction Set Summary (Control/Branch) 1. CALL ;Call 2. CLC ;Clear Carry 3. CLD ;Clear Direction 4. CLI ;Clear Interrupt 5. ESC ;Escape (to external device) 6. HLT ;Halt 7. INT ;Interrupt 8. INTO ;Interrupt on Overflow 9. IRET ;Interrupt Return 10. JB/JNAE ;Jump on Below/Not Above or Equal 11. JBE/JNA ;Jump on Below or Equal/Not Above 12. JCXZ ;Jump on CX Zero 13. JE/JZ ;Jump on Equal/Zero 14. JL/JNGE ;Jump on Less/Not Greater or Equal 15. JLE/JNG ;Jump on Less or Equal/Not Greater 16. JMP ;Unconditional Jump RCET Microprocessor & Microcontroller 77
  • 78. x86 Instruction Set Summary (Control/Branch Cont.) 17. JNB/JAE ;Jump on Not Below/Above or Equal 18. JNBE/JA ;Jump on Not Below or Equal/Above 19. JNE/JNZ ;Jump on Not Equal/Not Zero 20. JNL/JGE ;Jump on Not Less/Greater or Equal 21. JNLE/JG ;Jump on Not Less or Equal/Greater 22. JNO ;Jump on Not Overflow 23. JNP/JPO ;Jump on Not Parity/Parity Odd 24. JNS ;Jump on Not Sign 25. JO ;Jump on Overflow 26. JP/JPE ;Jump on Parity/Parity Even 27. JS ;Jump on Sign 28. LOCK ;Bus Lock prefix 29. LOOP ;Loop CX times 30. LOOPNZ/LOOPNE ;Loop while Not Zero/Not Equal 31. LOOPZ/LOOPE ;Loop while Zero/Equal 32. NOP ;No Operation (= XCHG AX,AX) RCET Microprocessor & Microcontroller 78
  • 79. x86 Instruction Set Summary (Control/Branch Cont.) 33. REP/REPNE/REPNZ ;Repeat/Repeat Not Equal/Not Zero 34. REPE/REPZ ;Repeat Equal/Zero 35. RET ;Return from call 36. SEG ;Segment register 37. STC ;Set Carry 38. STD ;Set Direction 39. STI ;Set Interrupt 40. TEST ;AND function to flags 41. WAIT ;Wait RCET Microprocessor & Microcontroller 79
  • 80. 8086 Instruction set Summary RCET Microprocessor & Microcontroller 80
  • 81. 8086 Instruction set Summary RCET Microprocessor & Microcontroller 81
  • 82. 8086 Instruction set Summary RCET Microprocessor & Microcontroller 82
  • 83. 8086 Assembler Directives 1. end label end of program, label is entry point 2. proc far|near begin a procedure; far, near keywords specify if the procedure is in different code segment (far), or same code segment (near) 3. endp end of procedure 4. page set a page format for the listing file 5. title title of the listing file 6. .code mark start of code segment RCET Microprocessor & Microcontroller 83
  • 84. 8086 Assembler Directives 7. .data mark start of data segment 8. .stack set size of stack segment 9. db define byte 10. dw define word (2 bytes) 11. dd define double word (4 bytes) 12. dq define quadword (8 bytes) 13. dt define tenbytes 14. equ equate, assign numeric expression to a name RCET Microprocessor & Microcontroller 84
  • 85. RCET Microprocessor & Microcontroller 85