SlideShare a Scribd company logo
1 of 7
MICROPROCESSOR 8085
LECTURE 12
INSTRUCTION SET-V
PROF. SANDIP DAS
INSTRUCTION CLASSIFICATION
• Data Transfer group
• Arithmetic group
• Logical group
• Branch group
• Stack, I/O and Machine Control group
BRANCH
GROUP
Unconditional CALL Instruction
CALL addr(label) Call the subroutine identified by the address T-states: 18 Flags: none
M-cycle-5
CALL instruction is used to call a subroutine. Before the control is transferred to the subroutine,
address of the next instruction is saved in the stack. The content of the stack pointer is decremented by two to
indicate the new stack top. Then the program jumps to the subroutine identified by the address(label).
Conditional CALL Instruction
CC addr (label) Call the subroutine if carry is 1 T-states: 9/18 Flags affected: none
M-cycle-2/5
The program calls the subroutine specified by the address (label) if carry is one.
CNC addr (label) Call the subroutine if carry is 0 T-states: 9/18 Flags affected: none
M-cycle-2/5
The program calls the subroutine specified by the address (label) if carry is zero.
CZ addr (label) Call the subroutine if Z=1 T-states: 9/18 Flags affected: none M-
cycle-2/5
The program calls the subroutine specified by the address (label) if zero flag is one
CP addr (label) Call the subroutine if result is plus T-states: 9/18 Flags affected:
none M-cycle-2/5
The program calls the subroutine specified by the address (label) if result is plus.
CM addr (label) Call the subroutine if result is minus T-states: 9/18 Flags affected:
none M-cycle-2/5
The program calls the subroutine specified by the address (label) if result is minus.
CPE addr (label) Call the subroutine if P=1 T-states: 9/18 Flags affected: none M-
cycle-2/5
The program calls the subroutine specified by the address (label) if result has even
parity, i.e. P=1
CPO addr (label) Call the subroutine if P=0 T-states: 9/18 Flags affected: none
M-cycle-2/5
The program calls the subroutine specified by the address (label) if result has odd
parity, i.e. P=0
RETURN
Unconditional RET Instruction
RET (Return from subroutine) T-states: 10 Flags affected: none M-cycle-3
BRANCH
GROUP
BRANCH
GROUPConditional RET Instruction
RC addr (label) Return from subroutine if carry is 1 T-states: 10 Flags affected: none
M-cycle-2/5
The program Return from subroutine specified by the address (label) if carry is one.
RNC addr (label) Return from subroutine if carry is 0 T-states: 10 Flags affected: none
M-cycle-2/5
The program Return from subroutine specified by the address (label) if carry is zero.
RZ addr (label) Return from subroutine if Z=1 T-states: 10 Flags affected: none
M-cycle-2/5
The program Return from subroutine specified by the address (label) if zero flag is one
RNZ addr (label) Return from from subroutine if Z=0 T-states: 10 Flags affected: none
M-cycle-2/5
The program Return from subroutine specified by the address (label) if zero flag is zero.
RP addr (label) Return from subroutine if result is plus T-states: 10 Flags affected: none M-cycle-
2/5
The program Return from subroutine specified by the address (label) if result is plus.
RM addr (label) Return from subroutine if result is minus T-states: 10 Flags affected: none M-cycle-
2/5
The program Return from subroutine specified by the address (label) if result is minus.
RPE addr (label) Return from subroutine if P=1 T-states: 10 Flags affected: none M-cycle-
BRANCH
GROUPRST n (Restart) T-states-12 M-cycle-3
Instruction Restart locations
RST 0 0000
RST 1 0008
RST 2 0010
RST 3 0018
RST 4 0020
RST 5 0028
RST 6 0030
RST 7 0038
PCHL Jump to address specified by H-L pair T-states-6 Flags-None
M/C-1
Contents of H-L pair are transferred to program counter.
PROGRAM TO MULTIPLY TWO 8 BIT
NUMBERS
Address Mnemonics,Operand Remarks
2000 LXI H, 3000H 21 Load H-L pair with address
3000H.
Lower-order of 3000H.
Higher-order of 3000H.
2003 MOV B, M Move the 1st operand from memory
to reg. B.
2004 INX H Increment H-L pair.
2005 MOV C, M Move the 2nd operand from memory
to reg. C.
2006 MVI A, 00H Initialize accumulator with 00H.
Immediate value 00H.
2008 ADD B Add B with A.
2009 DCR C Decrement reg. C (counter).
200A JNZ 2008H Jump back to address 2008H if C ≠ 0.
Lower-order of 2008H.
Higher-order of 2008H.
200D INX H Increment H-L pair.
200E MOV M, A Move the result from accumulator to
memory.
200F HLT Halt.
• Assume that the operands stored at
memory location 3000H is 02H and
3001H is 05H.
• Then, by using successive addition
method, we get 02H + 02H + 02H +
02H + 02H = 0AH.
• Initially, H-L pair is loaded with the
address of first memory location.
• The first operand is moved to
register B from memory location
3000H and H-L pair is incremented
to point to next memory location.
• The second operand is moved to
register C from memory location
3001H to act as counter.
• Accumulator is initialized to 00H.
• Register B is added with accumulator
and the result is stored in
accumulator.
• Register C (counter) is decremented
by 1.
• Then, counter is checked for zero. If
it hasn’t become zero yet, then
register B is again added with
accumulator, and counter is again
checked for zero.
• If counter becomes zero, then H-L
pair is incremented and the result is

More Related Content

What's hot

8085 data transfer instruction set
8085 data transfer instruction set8085 data transfer instruction set
8085 data transfer instruction setprashant1271
 
8085 stack & machine control instruction
8085 stack & machine control instruction8085 stack & machine control instruction
8085 stack & machine control instructionprashant1271
 
Genius it ians™ 8085 programming (part 2)
Genius it ians™  8085 programming (part 2)Genius it ians™  8085 programming (part 2)
Genius it ians™ 8085 programming (part 2)Manoj Shahu
 
Control Flow Graphs
Control Flow GraphsControl Flow Graphs
Control Flow Graphsdaimk2020
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Jay Patel
 
Microprocessor and Microcontroller Lab Manual
Microprocessor and Microcontroller Lab ManualMicroprocessor and Microcontroller Lab Manual
Microprocessor and Microcontroller Lab ManualSanthosh Kumar
 
SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2Apar Pramod
 
Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14IIUM
 
Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14IIUM
 
Instruction Set 8085
Instruction Set 8085Instruction Set 8085
Instruction Set 8085Stupidsid.com
 
Control Flow Analysis
Control Flow AnalysisControl Flow Analysis
Control Flow AnalysisEdgar Barbosa
 
Microprocessor square wave
Microprocessor square waveMicroprocessor square wave
Microprocessor square waveFthi Arefayne
 
Programming in c (importance of c)
Programming in c (importance of c)Programming in c (importance of c)
Programming in c (importance of c)ViswanathanS21
 
Principle source of optimazation
Principle source of optimazationPrinciple source of optimazation
Principle source of optimazationSiva Sathya
 
8085 arithmetic instructions
8085 arithmetic instructions8085 arithmetic instructions
8085 arithmetic instructionsprashant1271
 
17431 microprocessor & programming
17431  microprocessor & programming17431  microprocessor & programming
17431 microprocessor & programmingsoni_nits
 

What's hot (19)

8085 data transfer instruction set
8085 data transfer instruction set8085 data transfer instruction set
8085 data transfer instruction set
 
8085 stack & machine control instruction
8085 stack & machine control instruction8085 stack & machine control instruction
8085 stack & machine control instruction
 
Genius it ians™ 8085 programming (part 2)
Genius it ians™  8085 programming (part 2)Genius it ians™  8085 programming (part 2)
Genius it ians™ 8085 programming (part 2)
 
Control Flow Graphs
Control Flow GraphsControl Flow Graphs
Control Flow Graphs
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
Microprocessor and Microcontroller Lab Manual
Microprocessor and Microcontroller Lab ManualMicroprocessor and Microcontroller Lab Manual
Microprocessor and Microcontroller Lab Manual
 
SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2
 
ARM inst set part 2
ARM inst set part 2ARM inst set part 2
ARM inst set part 2
 
Microprocessor File
Microprocessor FileMicroprocessor File
Microprocessor File
 
Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14
 
Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14
 
Instruction Set 8085
Instruction Set 8085Instruction Set 8085
Instruction Set 8085
 
Control Flow Analysis
Control Flow AnalysisControl Flow Analysis
Control Flow Analysis
 
Microprocessor square wave
Microprocessor square waveMicroprocessor square wave
Microprocessor square wave
 
Programming in c (importance of c)
Programming in c (importance of c)Programming in c (importance of c)
Programming in c (importance of c)
 
Principle source of optimazation
Principle source of optimazationPrinciple source of optimazation
Principle source of optimazation
 
8085 arithmetic instructions
8085 arithmetic instructions8085 arithmetic instructions
8085 arithmetic instructions
 
17431 microprocessor & programming
17431  microprocessor & programming17431  microprocessor & programming
17431 microprocessor & programming
 
Control flow Graph
Control flow GraphControl flow Graph
Control flow Graph
 

Similar to 9. 8085 instruction set v

7. 8085 instruction set iv
7. 8085 instruction set iv7. 8085 instruction set iv
7. 8085 instruction set ivsandip das
 
5. 8085 instruction set ii
5. 8085 instruction set ii5. 8085 instruction set ii
5. 8085 instruction set iisandip das
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :PJathin Kanumuri
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction setSaumitra Rukmangad
 
microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2Jathin Kanumuri
 
Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!PRABHAHARAN429
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085techbed
 
CH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptxCH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptxXyzXyz338506
 
Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Basil John
 
Microprocessor Week 7: Branch Instruction
Microprocessor Week 7: Branch InstructionMicroprocessor Week 7: Branch Instruction
Microprocessor Week 7: Branch InstructionArkhom Jodtang
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed controlRai University
 
Mca i-u-3-basic computer programming and micro programmed control
Mca i-u-3-basic computer programming and micro programmed controlMca i-u-3-basic computer programming and micro programmed control
Mca i-u-3-basic computer programming and micro programmed controlRai University
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdfHimanshuPant41
 
Types of Instruction Format
Types of Instruction FormatTypes of Instruction Format
Types of Instruction FormatDhrumil Panchal
 
11. 8085 programming example iii
11. 8085 programming example iii11. 8085 programming example iii
11. 8085 programming example iiisandip das
 

Similar to 9. 8085 instruction set v (20)

7. 8085 instruction set iv
7. 8085 instruction set iv7. 8085 instruction set iv
7. 8085 instruction set iv
 
5. 8085 instruction set ii
5. 8085 instruction set ii5. 8085 instruction set ii
5. 8085 instruction set ii
 
List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :P
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 
microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2
 
Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!
 
CH06 (1).PPT
CH06 (1).PPTCH06 (1).PPT
CH06 (1).PPT
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
 
8085 micro processor
8085 micro processor8085 micro processor
8085 micro processor
 
CH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptxCH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptx
 
Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)
 
Microprocessor Week 7: Branch Instruction
Microprocessor Week 7: Branch InstructionMicroprocessor Week 7: Branch Instruction
Microprocessor Week 7: Branch Instruction
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed control
 
Mca i-u-3-basic computer programming and micro programmed control
Mca i-u-3-basic computer programming and micro programmed controlMca i-u-3-basic computer programming and micro programmed control
Mca i-u-3-basic computer programming and micro programmed control
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdf
 
Types of Instruction Format
Types of Instruction FormatTypes of Instruction Format
Types of Instruction Format
 
8085-paper-presentation.ppt
8085-paper-presentation.ppt8085-paper-presentation.ppt
8085-paper-presentation.ppt
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
11. 8085 programming example iii
11. 8085 programming example iii11. 8085 programming example iii
11. 8085 programming example iii
 

More from sandip das

31. 8086 addressing modes
31. 8086 addressing modes31. 8086 addressing modes
31. 8086 addressing modessandip das
 
30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecture30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecturesandip das
 
29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagram29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagramsandip das
 
28. 8251 programmable communication interface
28. 8251 programmable communication interface28. 8251 programmable communication interface
28. 8251 programmable communication interfacesandip das
 
27. 8259 programmable interrupt controller
27. 8259 programmable interrupt controller27. 8259 programmable interrupt controller
27. 8259 programmable interrupt controllersandip das
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programmingsandip das
 
25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interfacesandip das
 
24. direct memory access
24. direct memory access24. direct memory access
24. direct memory accesssandip das
 
23. serial and parallel data communication
23. serial and parallel data communication23. serial and parallel data communication
23. serial and parallel data communicationsandip das
 
22. interrupts ii
22. interrupts ii22. interrupts ii
22. interrupts iisandip das
 
21. interrupts
21. interrupts21. interrupts
21. interruptssandip das
 
20. io interfacing ii
20. io interfacing ii20. io interfacing ii
20. io interfacing iisandip das
 
19. io interfacing i
19. io interfacing i19. io interfacing i
19. io interfacing isandip das
 
18. memory interfacing iv
18. memory interfacing iv18. memory interfacing iv
18. memory interfacing ivsandip das
 
17. memory interfacing iii
17. memory interfacing iii17. memory interfacing iii
17. memory interfacing iiisandip das
 
16. memory interfacing ii
16. memory interfacing ii16. memory interfacing ii
16. memory interfacing iisandip das
 
15. memory interfacing i
15. memory interfacing i15. memory interfacing i
15. memory interfacing isandip das
 
14. 8085 programming example vi
14. 8085 programming example vi14. 8085 programming example vi
14. 8085 programming example visandip das
 
13. 8085 programming example v
13. 8085 programming example v13. 8085 programming example v
13. 8085 programming example vsandip das
 
12. 8085 programming example iv
12. 8085 programming example iv12. 8085 programming example iv
12. 8085 programming example ivsandip das
 

More from sandip das (20)

31. 8086 addressing modes
31. 8086 addressing modes31. 8086 addressing modes
31. 8086 addressing modes
 
30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecture30. 8086 microprocessor pipelined architecture
30. 8086 microprocessor pipelined architecture
 
29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagram29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagram
 
28. 8251 programmable communication interface
28. 8251 programmable communication interface28. 8251 programmable communication interface
28. 8251 programmable communication interface
 
27. 8259 programmable interrupt controller
27. 8259 programmable interrupt controller27. 8259 programmable interrupt controller
27. 8259 programmable interrupt controller
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programming
 
25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface
 
24. direct memory access
24. direct memory access24. direct memory access
24. direct memory access
 
23. serial and parallel data communication
23. serial and parallel data communication23. serial and parallel data communication
23. serial and parallel data communication
 
22. interrupts ii
22. interrupts ii22. interrupts ii
22. interrupts ii
 
21. interrupts
21. interrupts21. interrupts
21. interrupts
 
20. io interfacing ii
20. io interfacing ii20. io interfacing ii
20. io interfacing ii
 
19. io interfacing i
19. io interfacing i19. io interfacing i
19. io interfacing i
 
18. memory interfacing iv
18. memory interfacing iv18. memory interfacing iv
18. memory interfacing iv
 
17. memory interfacing iii
17. memory interfacing iii17. memory interfacing iii
17. memory interfacing iii
 
16. memory interfacing ii
16. memory interfacing ii16. memory interfacing ii
16. memory interfacing ii
 
15. memory interfacing i
15. memory interfacing i15. memory interfacing i
15. memory interfacing i
 
14. 8085 programming example vi
14. 8085 programming example vi14. 8085 programming example vi
14. 8085 programming example vi
 
13. 8085 programming example v
13. 8085 programming example v13. 8085 programming example v
13. 8085 programming example v
 
12. 8085 programming example iv
12. 8085 programming example iv12. 8085 programming example iv
12. 8085 programming example iv
 

Recently uploaded

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 

Recently uploaded (20)

9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 

9. 8085 instruction set v

  • 2. INSTRUCTION CLASSIFICATION • Data Transfer group • Arithmetic group • Logical group • Branch group • Stack, I/O and Machine Control group
  • 3. BRANCH GROUP Unconditional CALL Instruction CALL addr(label) Call the subroutine identified by the address T-states: 18 Flags: none M-cycle-5 CALL instruction is used to call a subroutine. Before the control is transferred to the subroutine, address of the next instruction is saved in the stack. The content of the stack pointer is decremented by two to indicate the new stack top. Then the program jumps to the subroutine identified by the address(label). Conditional CALL Instruction CC addr (label) Call the subroutine if carry is 1 T-states: 9/18 Flags affected: none M-cycle-2/5 The program calls the subroutine specified by the address (label) if carry is one. CNC addr (label) Call the subroutine if carry is 0 T-states: 9/18 Flags affected: none M-cycle-2/5 The program calls the subroutine specified by the address (label) if carry is zero. CZ addr (label) Call the subroutine if Z=1 T-states: 9/18 Flags affected: none M- cycle-2/5 The program calls the subroutine specified by the address (label) if zero flag is one
  • 4. CP addr (label) Call the subroutine if result is plus T-states: 9/18 Flags affected: none M-cycle-2/5 The program calls the subroutine specified by the address (label) if result is plus. CM addr (label) Call the subroutine if result is minus T-states: 9/18 Flags affected: none M-cycle-2/5 The program calls the subroutine specified by the address (label) if result is minus. CPE addr (label) Call the subroutine if P=1 T-states: 9/18 Flags affected: none M- cycle-2/5 The program calls the subroutine specified by the address (label) if result has even parity, i.e. P=1 CPO addr (label) Call the subroutine if P=0 T-states: 9/18 Flags affected: none M-cycle-2/5 The program calls the subroutine specified by the address (label) if result has odd parity, i.e. P=0 RETURN Unconditional RET Instruction RET (Return from subroutine) T-states: 10 Flags affected: none M-cycle-3 BRANCH GROUP
  • 5. BRANCH GROUPConditional RET Instruction RC addr (label) Return from subroutine if carry is 1 T-states: 10 Flags affected: none M-cycle-2/5 The program Return from subroutine specified by the address (label) if carry is one. RNC addr (label) Return from subroutine if carry is 0 T-states: 10 Flags affected: none M-cycle-2/5 The program Return from subroutine specified by the address (label) if carry is zero. RZ addr (label) Return from subroutine if Z=1 T-states: 10 Flags affected: none M-cycle-2/5 The program Return from subroutine specified by the address (label) if zero flag is one RNZ addr (label) Return from from subroutine if Z=0 T-states: 10 Flags affected: none M-cycle-2/5 The program Return from subroutine specified by the address (label) if zero flag is zero. RP addr (label) Return from subroutine if result is plus T-states: 10 Flags affected: none M-cycle- 2/5 The program Return from subroutine specified by the address (label) if result is plus. RM addr (label) Return from subroutine if result is minus T-states: 10 Flags affected: none M-cycle- 2/5 The program Return from subroutine specified by the address (label) if result is minus. RPE addr (label) Return from subroutine if P=1 T-states: 10 Flags affected: none M-cycle-
  • 6. BRANCH GROUPRST n (Restart) T-states-12 M-cycle-3 Instruction Restart locations RST 0 0000 RST 1 0008 RST 2 0010 RST 3 0018 RST 4 0020 RST 5 0028 RST 6 0030 RST 7 0038 PCHL Jump to address specified by H-L pair T-states-6 Flags-None M/C-1 Contents of H-L pair are transferred to program counter.
  • 7. PROGRAM TO MULTIPLY TWO 8 BIT NUMBERS Address Mnemonics,Operand Remarks 2000 LXI H, 3000H 21 Load H-L pair with address 3000H. Lower-order of 3000H. Higher-order of 3000H. 2003 MOV B, M Move the 1st operand from memory to reg. B. 2004 INX H Increment H-L pair. 2005 MOV C, M Move the 2nd operand from memory to reg. C. 2006 MVI A, 00H Initialize accumulator with 00H. Immediate value 00H. 2008 ADD B Add B with A. 2009 DCR C Decrement reg. C (counter). 200A JNZ 2008H Jump back to address 2008H if C ≠ 0. Lower-order of 2008H. Higher-order of 2008H. 200D INX H Increment H-L pair. 200E MOV M, A Move the result from accumulator to memory. 200F HLT Halt. • Assume that the operands stored at memory location 3000H is 02H and 3001H is 05H. • Then, by using successive addition method, we get 02H + 02H + 02H + 02H + 02H = 0AH. • Initially, H-L pair is loaded with the address of first memory location. • The first operand is moved to register B from memory location 3000H and H-L pair is incremented to point to next memory location. • The second operand is moved to register C from memory location 3001H to act as counter. • Accumulator is initialized to 00H. • Register B is added with accumulator and the result is stored in accumulator. • Register C (counter) is decremented by 1. • Then, counter is checked for zero. If it hasn’t become zero yet, then register B is again added with accumulator, and counter is again checked for zero. • If counter becomes zero, then H-L pair is incremented and the result is