SlideShare une entreprise Scribd logo
1  sur  85
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

Contenu connexe

Tendances

8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx5G8Rajendra
 
Architecture of 8086 microprocessor
Architecture of  8086 microprocessorArchitecture of  8086 microprocessor
Architecture of 8086 microprocessorAnirban Saha Anik
 
Post quantum cryptography
Post quantum cryptographyPost quantum cryptography
Post quantum cryptographyMartins Okoi
 
Register of 80386
Register of 80386Register of 80386
Register of 80386aviban
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptxMemonaMemon1
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING Zena Abo-Altaheen
 
Microcontroller pic 16f877 addressing modes instructions and programming
Microcontroller pic 16f877 addressing modes instructions and programmingMicrocontroller pic 16f877 addressing modes instructions and programming
Microcontroller pic 16f877 addressing modes instructions and programmingNilesh Bhaskarrao Bahadure
 
Unit I & II in Principles of Soft computing
Unit I & II in Principles of Soft computing Unit I & II in Principles of Soft computing
Unit I & II in Principles of Soft computing Sivagowry Shathesh
 
Random Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network SecurityRandom Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network SecurityMahbubur Rahman
 
Classical Encryption Techniques in Network Security
Classical Encryption Techniques in Network SecurityClassical Encryption Techniques in Network Security
Classical Encryption Techniques in Network Securitybabak danyal
 
Generating code from dags
Generating code from dagsGenerating code from dags
Generating code from dagsindhu mathi
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formatsMazin Alwaaly
 

Tendances (20)

predicate logic example
predicate logic examplepredicate logic example
predicate logic example
 
8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx
 
Architecture of 8086 microprocessor
Architecture of  8086 microprocessorArchitecture of  8086 microprocessor
Architecture of 8086 microprocessor
 
RC4&RC5
RC4&RC5RC4&RC5
RC4&RC5
 
Post quantum cryptography
Post quantum cryptographyPost quantum cryptography
Post quantum cryptography
 
Register of 80386
Register of 80386Register of 80386
Register of 80386
 
8086 ppt
8086 ppt8086 ppt
8086 ppt
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
Delay routine
Delay routineDelay routine
Delay routine
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
 
Microcontroller pic 16f877 addressing modes instructions and programming
Microcontroller pic 16f877 addressing modes instructions and programmingMicrocontroller pic 16f877 addressing modes instructions and programming
Microcontroller pic 16f877 addressing modes instructions and programming
 
Unit I & II in Principles of Soft computing
Unit I & II in Principles of Soft computing Unit I & II in Principles of Soft computing
Unit I & II in Principles of Soft computing
 
Random Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network SecurityRandom Oracle Model & Hashing - Cryptography & Network Security
Random Oracle Model & Hashing - Cryptography & Network Security
 
Classical Encryption Techniques in Network Security
Classical Encryption Techniques in Network SecurityClassical Encryption Techniques in Network Security
Classical Encryption Techniques in Network Security
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
Generating code from dags
Generating code from dagsGenerating code from dags
Generating code from dags
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formats
 
Transport layer security
Transport layer securityTransport layer security
Transport layer security
 
Register Organization of 80386
Register Organization of 80386Register Organization of 80386
Register Organization of 80386
 
MD-5 : Algorithm
MD-5 : AlgorithmMD-5 : Algorithm
MD-5 : Algorithm
 

En vedette (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
 

Similaire à 8086 module 1 & 2 work

8086 architecture-unit-1
8086 architecture-unit-18086 architecture-unit-1
8086 architecture-unit-1logesh.ieee
 
Management of system software
Management of system softwareManagement of system software
Management of system softwareAryaChandran13
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessorSManjula2
 
15CS44 MP & MC Module 1
15CS44 MP & MC Module 115CS44 MP & MC Module 1
15CS44 MP & MC Module 1RLJIT
 
Students corner131
Students corner131Students corner131
Students corner131Satti286
 
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 yearBharghavteja1
 
Motorola 68020.pdf
Motorola 68020.pdfMotorola 68020.pdf
Motorola 68020.pdfArijitDhali
 
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioUnit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioManikanta Reddy Sakam
 
Introduction to 8086 Microprocessors.ppt
Introduction to 8086 Microprocessors.pptIntroduction to 8086 Microprocessors.ppt
Introduction to 8086 Microprocessors.pptSasiBhushan22
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.pptSanjay164567
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.pptssuserbe76c3
 
8086_architecture.ppt
8086_architecture.ppt8086_architecture.ppt
8086_architecture.pptHarshShah659
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessorjhcid
 
Assembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxAssembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxVickyThakur61
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessorDiponkor Bala
 

Similaire à 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
 
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
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
 

Dernier

Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 

Dernier (20)

Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 

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