SlideShare a Scribd company logo
1 of 6
Download to read offline
Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 1
Instruction Set of 8085 microprocessor
a) Data Transfer Group
b) Arithmetic Group
c) Logical Group
d) Branching/Loop Group
e) Stack and Machine Control Group
Notation used in Instruction and opcode
Notations Meaning
M Memory location pointed by HL register pair
R 8-bit register
RP 16-bit register pair
RS Source register
RD Destination register
Addr 16-bit address
X 8-bit data
e) Stack and Machine Control Group
1. PUSH RP 2. POP RP 3. SPHL 4. XTHL
5. NOP 6. HLT 7. EI 8. DI
9. RIM 10. SIM
1. PUSH RP:
Description - When this instruction is executed the contents of the specified
register pair are copied onto the stack.
Operation - Higher order RP-----> (SP-1)
Lower order RP-----> (SP-2)
(SP-2) ------> SP
No. of Bytes- 1
Flags - No flags are modified.
Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 2
Example - PUSH B
Before Execution After Execution
BC = 1020 H BC = 1020 H
SP = 2FFF H SP-1 = 2FFE H = 10H
SP-2 = 2FFD H = 20H
SP = 2FFD H
2. POP RP:
Description - When this instruction is executed the contents of the memory
location pointed by the stack pointer register are copied to the low
order register of register pair. The stack pointer is incremented by
one and the content of that memory location are copied to the
higher order register of register pair.
Operation - SP-----> Lower order RP
(SP+1)-----> Higher order RP
(SP+2) ------> SP
No. of Bytes- 1
Flags - No flags are modified.
Example - POP B
Before Execution After Execution
BC = 4035 H BC = 1020 H
SP = 2FFD H = 20H C = 20H
SP+1 = 2FFE H = 10H B = 10H
SP+2 = 2FFF H SP = 2FFF H
3. SPHL:
Description - Load stack pointer with content of HL register pair.
Operation - HL -----> SP
No. of Bytes- 1
Flags - No flags are modified.
Example - SPHL
Before Execution After Execution
HL = 2040 H HL = 2040 H
SP = 3000 H SP = 2040 H
Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 3
4. XTHL:
Description - Exchange HL register pair with top of stack.
Operation - L <-----> SP
H <-----> (SP+1)
No. of Bytes- 1
Flags - No flags are modified.
Example - XTHL
Before Execution After Execution
HL = 2040 H HL = 4637H
SP = 27FD H = 37H SP = 27FD H = 40H
SP + 1 = 27FE H = 46H SP + 1 = 27FE H = 20H
5. NOP (No operation)
Description - When this instruction is executed no operation is performed and
microprocessor will go for the next instruction after that.
Operation - PC + 1 <-----> PC
No. of Bytes- 1
Flags - No flags are modified.
Example - NOP
6. HLT
Description - When this instruction is executed microprocessor complete the
instruction and halts any further execution and enters the halt acknowledge
machine cycle.
Operation - ------
No. of Bytes- 1
Flags - No flags are modified.
Example - HLT
Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 4
7. EI
Description - This instruction is used to enable all maskable interrupts.
Operation - ------
No. of Bytes- 1
Flags - No flags are modified.
Example - EI
8. DI
Description - This instruction is used to disable all maskable interrupts.
Operation - ------
No. of Bytes- 1
Flags - No flags are modified.
Example - DI
9. SIM(Set Interrupt Mask)
Description - This instruction is used to enable or disable RST 7.5, RST 6.5 and
RST 5.5 interrupts. It is also used in serial data communication.
SIM instruction Format
SOD
Output
Enable
Input
SOD SDE X R 7.5 MSE M’7.5 M’6.5 M’5.5
Bit No. Pin Description Value Comment
D7 SOD Serial output data bit - -
D6 SDE Serial data enable
1 Enable serial port
0 Disable serial port
D5 X Don’t care - -
D4 R 7.5 Reset R 7.5 flip-flop
1 Reset R 7.5 flip-flop
0 No effect on R 7.5 flip-flop
Serial
output port
Interrupt Control Logic
Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 5
D3 MSE Mask Set Enable
1 D2 D1 D0 bits are effective
0 D2 D1 D0 bits are ignored
D2 M’7.5 Mask RST 7.5
1 Mask or disable RST 7.5
0 Unmask or enable RST 7.5
D1 M’6.5 Mask RST 6.5
1 Mask or disable RST 6.5
0 Unmask or enable RST 6.5
D0 M’5.5 Mask RST 5.5
1 Mask or disable RST 5.5
0 Unmask or enable RST 5.5
Operation - ------
No. of Bytes- 1
Flags - No flags are modified.
Example - SIM
10.RIM (Read Interrupt Mask)
Description - This instruction is used to check status of all maskable interrupts.
It is also used in serial data communication.
SIM instruction Format
SID
SID I 7.5 I 6.5 I 5.5 IE M 7.5 M 6.5 M 5.5
Bit No. Pin Description Value Comment
D7 SID Serial input data bit - -
D6 I 7.5 RST 7.5 pending
1 RST 7.5 is pending or R 7.5 flip-flop is set
0 RST 7.5 is not active or R 7.5 flip-flop is reset
D5 I 6.5 RST 6.5 pending
1 RST 6.5 is pending or RST 6.5 pin is at logic 1
0 RST 6.5 is not active or RST 6.5 pin is at logic 0
Serial input
port
Interrupt Control Logic
Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 6
D4 I 5.5 RST 5.5 pending
1 RST 5.5 is pending or RST 6.5 pin is at logic 1
0 RST 5.5 is not active or RST 6.5 pin is at logic 0
D3 IE Interrupt Enable
1 INTE flip-flop is set or all maskable interrupts
are enabled
0 INTE flip-flop is reset or all maskable
interrupts are disabled
D2 M 7.5 Mask RST 7.5
1 Mask or disable RST 7.5
0 Unmask or enable RST 7.5
D1 M 6.5 Mask RST 6.5
1 Mask or disable RST 6.5
0 Unmask or enable RST 6.5
D0 M 5.5 Mask RST 5.5
1 Mask or disable RST 5.5
0 Unmask or enable RST 5.5
Operation - ------
No. of Bytes- 1
Flags - No flags are modified.
Example - RIM

More Related Content

What's hot

Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kVijay Kumar
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Unit 3 basic processing unit
Unit 3   basic processing unitUnit 3   basic processing unit
Unit 3 basic processing unitchidabdu
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
Instruction set of 8085 microprocessor
Instruction set of 8085 microprocessorInstruction set of 8085 microprocessor
Instruction set of 8085 microprocessorRahul Sahu
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorNikhil Kumar
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessorAvin Mathew
 
Counters &amp; time delay
Counters &amp; time delayCounters &amp; time delay
Counters &amp; time delayHemant Chetwani
 
8051 architecture
8051 architecture8051 architecture
8051 architecturesb108ec
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptxHebaEng
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorMOHIT AGARWAL
 
Modes of 80386
Modes of 80386Modes of 80386
Modes of 80386aviban
 

What's hot (20)

Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
Unit 3 basic processing unit
Unit 3   basic processing unitUnit 3   basic processing unit
Unit 3 basic processing unit
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
Instruction set of 8085 microprocessor
Instruction set of 8085 microprocessorInstruction set of 8085 microprocessor
Instruction set of 8085 microprocessor
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 Microprocessor
 
8086 modes
8086 modes8086 modes
8086 modes
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
Counters &amp; time delay
Counters &amp; time delayCounters &amp; time delay
Counters &amp; time delay
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 Microprocessor
 
8086
80868086
8086
 
Addressing sequencing
Addressing sequencingAddressing sequencing
Addressing sequencing
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Modes of 80386
Modes of 80386Modes of 80386
Modes of 80386
 

Similar to 8085 stack &amp; machine control instruction

Microprocessor Part 4
Microprocessor    Part 4Microprocessor    Part 4
Microprocessor Part 4Sajan Agrawal
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsSreenivas Hanumandla
 
L10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 pL10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 prsamurti
 
Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...
Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...
Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...Hsien-Hsin Sean Lee, Ph.D.
 
Unit II Arm 7 Introduction
Unit II Arm 7 IntroductionUnit II Arm 7 Introduction
Unit II Arm 7 IntroductionDr. Pankaj Zope
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary janicetiong
 
Arm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptArm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptManju Badiger
 
Instruction set of 8051.ppt
Instruction set of 8051.pptInstruction set of 8051.ppt
Instruction set of 8051.pptChandiniChinni2
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
80 c51 family programmer’s guide
80 c51 family programmer’s guide80 c51 family programmer’s guide
80 c51 family programmer’s guidePratheesh Pala
 
07 processor basics
07 processor basics07 processor basics
07 processor basicsMurali M
 
Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...
Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...
Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...Takahiro Katagiri
 

Similar to 8085 stack &amp; machine control instruction (20)

Microprocessor Part 4
Microprocessor    Part 4Microprocessor    Part 4
Microprocessor Part 4
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller ppts
 
Alp 8051
Alp 8051Alp 8051
Alp 8051
 
Arm architecture
Arm architectureArm architecture
Arm architecture
 
L10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 pL10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 p
 
Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...
Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...
Lec7 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...
 
Unit II Arm 7 Introduction
Unit II Arm 7 IntroductionUnit II Arm 7 Introduction
Unit II Arm 7 Introduction
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary
 
Emb day2 8051
Emb day2 8051Emb day2 8051
Emb day2 8051
 
Dsp Datapath
Dsp DatapathDsp Datapath
Dsp Datapath
 
Registers
RegistersRegisters
Registers
 
A0220105
A0220105A0220105
A0220105
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Arm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptArm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.ppt
 
Instruction set of 8051.ppt
Instruction set of 8051.pptInstruction set of 8051.ppt
Instruction set of 8051.ppt
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
80 c51 family programmer’s guide
80 c51 family programmer’s guide80 c51 family programmer’s guide
80 c51 family programmer’s guide
 
07 processor basics
07 processor basics07 processor basics
07 processor basics
 
Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...
Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...
Towards Auto-tuning Facilities into Supercomputers in Operation - The FIBER a...
 

Recently uploaded

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
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
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
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
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
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
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Recently uploaded (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
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...
 
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, ...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
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
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
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
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

8085 stack &amp; machine control instruction

  • 1. Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 1 Instruction Set of 8085 microprocessor a) Data Transfer Group b) Arithmetic Group c) Logical Group d) Branching/Loop Group e) Stack and Machine Control Group Notation used in Instruction and opcode Notations Meaning M Memory location pointed by HL register pair R 8-bit register RP 16-bit register pair RS Source register RD Destination register Addr 16-bit address X 8-bit data e) Stack and Machine Control Group 1. PUSH RP 2. POP RP 3. SPHL 4. XTHL 5. NOP 6. HLT 7. EI 8. DI 9. RIM 10. SIM 1. PUSH RP: Description - When this instruction is executed the contents of the specified register pair are copied onto the stack. Operation - Higher order RP-----> (SP-1) Lower order RP-----> (SP-2) (SP-2) ------> SP No. of Bytes- 1 Flags - No flags are modified.
  • 2. Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 2 Example - PUSH B Before Execution After Execution BC = 1020 H BC = 1020 H SP = 2FFF H SP-1 = 2FFE H = 10H SP-2 = 2FFD H = 20H SP = 2FFD H 2. POP RP: Description - When this instruction is executed the contents of the memory location pointed by the stack pointer register are copied to the low order register of register pair. The stack pointer is incremented by one and the content of that memory location are copied to the higher order register of register pair. Operation - SP-----> Lower order RP (SP+1)-----> Higher order RP (SP+2) ------> SP No. of Bytes- 1 Flags - No flags are modified. Example - POP B Before Execution After Execution BC = 4035 H BC = 1020 H SP = 2FFD H = 20H C = 20H SP+1 = 2FFE H = 10H B = 10H SP+2 = 2FFF H SP = 2FFF H 3. SPHL: Description - Load stack pointer with content of HL register pair. Operation - HL -----> SP No. of Bytes- 1 Flags - No flags are modified. Example - SPHL Before Execution After Execution HL = 2040 H HL = 2040 H SP = 3000 H SP = 2040 H
  • 3. Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 3 4. XTHL: Description - Exchange HL register pair with top of stack. Operation - L <-----> SP H <-----> (SP+1) No. of Bytes- 1 Flags - No flags are modified. Example - XTHL Before Execution After Execution HL = 2040 H HL = 4637H SP = 27FD H = 37H SP = 27FD H = 40H SP + 1 = 27FE H = 46H SP + 1 = 27FE H = 20H 5. NOP (No operation) Description - When this instruction is executed no operation is performed and microprocessor will go for the next instruction after that. Operation - PC + 1 <-----> PC No. of Bytes- 1 Flags - No flags are modified. Example - NOP 6. HLT Description - When this instruction is executed microprocessor complete the instruction and halts any further execution and enters the halt acknowledge machine cycle. Operation - ------ No. of Bytes- 1 Flags - No flags are modified. Example - HLT
  • 4. Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 4 7. EI Description - This instruction is used to enable all maskable interrupts. Operation - ------ No. of Bytes- 1 Flags - No flags are modified. Example - EI 8. DI Description - This instruction is used to disable all maskable interrupts. Operation - ------ No. of Bytes- 1 Flags - No flags are modified. Example - DI 9. SIM(Set Interrupt Mask) Description - This instruction is used to enable or disable RST 7.5, RST 6.5 and RST 5.5 interrupts. It is also used in serial data communication. SIM instruction Format SOD Output Enable Input SOD SDE X R 7.5 MSE M’7.5 M’6.5 M’5.5 Bit No. Pin Description Value Comment D7 SOD Serial output data bit - - D6 SDE Serial data enable 1 Enable serial port 0 Disable serial port D5 X Don’t care - - D4 R 7.5 Reset R 7.5 flip-flop 1 Reset R 7.5 flip-flop 0 No effect on R 7.5 flip-flop Serial output port Interrupt Control Logic
  • 5. Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 5 D3 MSE Mask Set Enable 1 D2 D1 D0 bits are effective 0 D2 D1 D0 bits are ignored D2 M’7.5 Mask RST 7.5 1 Mask or disable RST 7.5 0 Unmask or enable RST 7.5 D1 M’6.5 Mask RST 6.5 1 Mask or disable RST 6.5 0 Unmask or enable RST 6.5 D0 M’5.5 Mask RST 5.5 1 Mask or disable RST 5.5 0 Unmask or enable RST 5.5 Operation - ------ No. of Bytes- 1 Flags - No flags are modified. Example - SIM 10.RIM (Read Interrupt Mask) Description - This instruction is used to check status of all maskable interrupts. It is also used in serial data communication. SIM instruction Format SID SID I 7.5 I 6.5 I 5.5 IE M 7.5 M 6.5 M 5.5 Bit No. Pin Description Value Comment D7 SID Serial input data bit - - D6 I 7.5 RST 7.5 pending 1 RST 7.5 is pending or R 7.5 flip-flop is set 0 RST 7.5 is not active or R 7.5 flip-flop is reset D5 I 6.5 RST 6.5 pending 1 RST 6.5 is pending or RST 6.5 pin is at logic 1 0 RST 6.5 is not active or RST 6.5 pin is at logic 0 Serial input port Interrupt Control Logic
  • 6. Prashant Sharma, Lecturer, ET&T, MMGGP, Rajnandgaon (C.G.) Page 6 D4 I 5.5 RST 5.5 pending 1 RST 5.5 is pending or RST 6.5 pin is at logic 1 0 RST 5.5 is not active or RST 6.5 pin is at logic 0 D3 IE Interrupt Enable 1 INTE flip-flop is set or all maskable interrupts are enabled 0 INTE flip-flop is reset or all maskable interrupts are disabled D2 M 7.5 Mask RST 7.5 1 Mask or disable RST 7.5 0 Unmask or enable RST 7.5 D1 M 6.5 Mask RST 6.5 1 Mask or disable RST 6.5 0 Unmask or enable RST 6.5 D0 M 5.5 Mask RST 5.5 1 Mask or disable RST 5.5 0 Unmask or enable RST 5.5 Operation - ------ No. of Bytes- 1 Flags - No flags are modified. Example - RIM