SlideShare a Scribd company logo
1 of 14
Download to read offline
PRINCIPLES OF 8085 MICROPROCESSOR
Dr.S.Barani
School of Electrical and Electronics Engineering
Sathyabama Institute of Science and Technology
Week 2 – Instruction sets
A certified Moodle Course on
Programming Languages
High level Languages
Not specific to a Processor.
Compiler Compiles the
Program.
E.g.. C++ etc…
8085 Assembly Language
Programming (ALP)
Low level Programming Lang
Specific to particular
architecture
Working with bits are easier.
Assembler compiles the
program
Programming Languages
Low Level
Medium Level
High Level
2
A certified Moodle Course on Principles of 8085 Microprocessor
Hexadecim
al numbers
0 8
1 9
2 A
3 B
4 C
5 D
6 E
7 F
Instruction Sets
Data transfer Instructions – moves data from / to – I/O and Memory
Arithmetic Instructions - Performs Arithmetic operation
Logical Instructions - Performs Logical operation
Branch Instructions - Switches the sequence of instructions
Machine Control Instructions- Controls machine opeeration
3
A certified Moodle Course on Principles of 8085 Microprocessor
DATA TRANSFER INSTRUCTIONS
4
A certified Moodle Course on Principles of 8085 Microprocessor
Copy of data
MOV Moves data from register to register / memory
MVI Moves immediate data to register / memory
Load Instructions
LDA Load accumulator direct
LDAX Load accumulator indirect
LHLD Load H&L registers direct
LXI Load register pair immediate
Store Instructions
STA Store accumulator direct
SPHL Copy H&L registers to stack pointer.
STAX Store accumulator indirect
5
A certified Moodle Course on Principles of 8085 Microprocessor
Copy of Data
6
A certified Moodle Course on Principles of 8085 Microprocessor
MOV B,C
Register Contents Before execution
Register Contents After execution
Syntax MOV Destination (des) ,Source (src) – 1 byte
Status of Flag Register
Flags are not affected
No change in Flag contents
7
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src and
des
B,C,D,E,
H,L,A
and M
(memory)
72 9E
B C
9E 9E
B C
MOV B,M
Register Contents Before execution
Syntax MOV Destination (des) ,Source (src) – 1 byte
Status of Flag Register
Flags are not affected
No change in Flag
contents
8
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src and
des
B,C,D,E,
H,L,A
and M
(memory)
9E XX
XX XX
20 50
Register Contents After execution
B
D
H
C
E
L
B
D
H
XX XX
XX XX
20 50
C
E
L
2050 9E
MVI M,3A
Register Contents Before execution
Register Contents After execution
Syntax MVI Destination (des) , 8 bit data – 1 byte
Status of Flag
Register
Flags are not
affected
No change in Flag
contents
9
A certified Moodle Course on Principles of 8085 Microprocessor
Hint
Src is 8 bit
data i.e
directly
passing the
value
Des is
Reg, Mem
20 50
H L
20 50
H L
2050 9E
2050 3A
TRY - OUT
TASK 1
Execute the
instruction MOV A, E
and update the
contents of A,E
registers and status of
Flag register.
Before execution
The content of A - 5F
The content of E – 6D
TASK 2
Execute the instruction
MOV M, B and update
the contents of M,B
registers and status of
Flag register.
Before execution
The content of H - 40
The content of L – 00
The content of B – 32
Content of 4000 – 6D
TASK 3
Execute the instruction
MVI A, 2C and update
the contents of
registers and status of
Flag register.
Before execution
The content of A - 40
10
A certified Moodle Course on Principles of 8085 Microprocessor
SOLUTION - TASK 1
Before execution
After execution
No changes in flag register
11
A certified Moodle Course on Principles of 8085 Microprocessor
TASK 1
Execute the instruction
MOV A, E and update the
contents of A,E registers
and status of Flag register.
Before execution
The content of A - 5F
The content of E – 6D
A E
5F 6D
6D 6D
A E
SOLUTION - TASK 2
Before execution
After execution
No changes in flag register
12
A certified Moodle Course on Principles of 8085 Microprocessor
H L B
40 00 32
40 00 32
H L B
TASK 2
Execute the
instruction MOV M, B
and update the
contents of M,B
registers and status
of Flag register.
Before execution
The content of H - 40
The content of L – 00
The content of B – 32
Content of 4000 – 6D
4000 6D
4000 32
SOLUTION - TASK 3
Before execution
After execution
No changes in flag register
13
A certified Moodle Course on Principles of 8085 Microprocessor
A
40
2C
A
TASK 3
Execute the
instruction MVI A, 2C
and update the
contents of registers
and status of Flag
register.
Before execution
The content of A - 40
A certified Moodle Course on Principles of 8085 Microprocessor

More Related Content

Similar to 8085 Microprocessor Instruction Sets

Question bank malp 3340302
Question bank malp 3340302Question bank malp 3340302
Question bank malp 3340302SHAH JAINAM
 
Ecet 365 Enhance teaching / snaptutorial.com
Ecet 365   Enhance teaching / snaptutorial.comEcet 365   Enhance teaching / snaptutorial.com
Ecet 365 Enhance teaching / snaptutorial.comDavis116a
 
8085 intel alp_manual_may81
8085 intel alp_manual_may818085 intel alp_manual_may81
8085 intel alp_manual_may81serjani
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Swati Watve-Phadke
 
Basics of digital verilog design(alok singh kanpur)
Basics of digital verilog design(alok singh kanpur)Basics of digital verilog design(alok singh kanpur)
Basics of digital verilog design(alok singh kanpur)Alok Singh
 
Ecet 365 Education Redefined - snaptutorial.com
Ecet 365    Education Redefined - snaptutorial.comEcet 365    Education Redefined - snaptutorial.com
Ecet 365 Education Redefined - snaptutorial.comDavisMurphyC85
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programmingSergio Barrios
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programminghamza239523
 
Micrcontroller iv sem lab manual
Micrcontroller iv sem lab manualMicrcontroller iv sem lab manual
Micrcontroller iv sem lab manualRohiniHM2
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerSenthil Kumar
 
ECET 365 Exceptional Education / snaptutorial.com
ECET 365 Exceptional Education / snaptutorial.comECET 365 Exceptional Education / snaptutorial.com
ECET 365 Exceptional Education / snaptutorial.comdonaldzs109
 
8080 8085 assembly language_programming manual programando
8080 8085 assembly  language_programming manual programando 8080 8085 assembly  language_programming manual programando
8080 8085 assembly language_programming manual programando Universidad de Tarapaca
 
S1000D and SCORM Integration
S1000D and SCORM IntegrationS1000D and SCORM Integration
S1000D and SCORM IntegrationJoel Amoussou
 
ECET 365 Success Begins/Newtonhelp.com
ECET 365 Success Begins/Newtonhelp.comECET 365 Success Begins/Newtonhelp.com
ECET 365 Success Begins/Newtonhelp.comledlang1
 
A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...jeronimored
 

Similar to 8085 Microprocessor Instruction Sets (20)

Question bank malp 3340302
Question bank malp 3340302Question bank malp 3340302
Question bank malp 3340302
 
Ecet 365 Enhance teaching / snaptutorial.com
Ecet 365   Enhance teaching / snaptutorial.comEcet 365   Enhance teaching / snaptutorial.com
Ecet 365 Enhance teaching / snaptutorial.com
 
8085 intel alp_manual_may81
8085 intel alp_manual_may818085 intel alp_manual_may81
8085 intel alp_manual_may81
 
MPMC UNIT-2.pdf
MPMC UNIT-2.pdfMPMC UNIT-2.pdf
MPMC UNIT-2.pdf
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 
PLC Training Intro
PLC Training IntroPLC Training Intro
PLC Training Intro
 
Basics of digital verilog design(alok singh kanpur)
Basics of digital verilog design(alok singh kanpur)Basics of digital verilog design(alok singh kanpur)
Basics of digital verilog design(alok singh kanpur)
 
PathMATE
PathMATEPathMATE
PathMATE
 
Ecet 365 Education Redefined - snaptutorial.com
Ecet 365    Education Redefined - snaptutorial.comEcet 365    Education Redefined - snaptutorial.com
Ecet 365 Education Redefined - snaptutorial.com
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programming
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programming
 
Micrcontroller iv sem lab manual
Micrcontroller iv sem lab manualMicrcontroller iv sem lab manual
Micrcontroller iv sem lab manual
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontroller
 
ECET 365 Exceptional Education / snaptutorial.com
ECET 365 Exceptional Education / snaptutorial.comECET 365 Exceptional Education / snaptutorial.com
ECET 365 Exceptional Education / snaptutorial.com
 
8080 8085 assembly language_programming manual programando
8080 8085 assembly  language_programming manual programando 8080 8085 assembly  language_programming manual programando
8080 8085 assembly language_programming manual programando
 
S1000D and SCORM Integration
S1000D and SCORM IntegrationS1000D and SCORM Integration
S1000D and SCORM Integration
 
ECET 365 Success Begins/Newtonhelp.com
ECET 365 Success Begins/Newtonhelp.comECET 365 Success Begins/Newtonhelp.com
ECET 365 Success Begins/Newtonhelp.com
 
Microprocessors
Microprocessors Microprocessors
Microprocessors
 
A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...
 
WT.PPTX
WT.PPTXWT.PPTX
WT.PPTX
 

Recently uploaded

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
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
 
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 Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
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
 
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
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 

Recently uploaded (20)

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
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)
 
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
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
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
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
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
 
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
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 

8085 Microprocessor Instruction Sets

  • 1. PRINCIPLES OF 8085 MICROPROCESSOR Dr.S.Barani School of Electrical and Electronics Engineering Sathyabama Institute of Science and Technology Week 2 – Instruction sets A certified Moodle Course on
  • 2. Programming Languages High level Languages Not specific to a Processor. Compiler Compiles the Program. E.g.. C++ etc… 8085 Assembly Language Programming (ALP) Low level Programming Lang Specific to particular architecture Working with bits are easier. Assembler compiles the program Programming Languages Low Level Medium Level High Level 2 A certified Moodle Course on Principles of 8085 Microprocessor Hexadecim al numbers 0 8 1 9 2 A 3 B 4 C 5 D 6 E 7 F
  • 3. Instruction Sets Data transfer Instructions – moves data from / to – I/O and Memory Arithmetic Instructions - Performs Arithmetic operation Logical Instructions - Performs Logical operation Branch Instructions - Switches the sequence of instructions Machine Control Instructions- Controls machine opeeration 3 A certified Moodle Course on Principles of 8085 Microprocessor
  • 4. DATA TRANSFER INSTRUCTIONS 4 A certified Moodle Course on Principles of 8085 Microprocessor
  • 5. Copy of data MOV Moves data from register to register / memory MVI Moves immediate data to register / memory Load Instructions LDA Load accumulator direct LDAX Load accumulator indirect LHLD Load H&L registers direct LXI Load register pair immediate Store Instructions STA Store accumulator direct SPHL Copy H&L registers to stack pointer. STAX Store accumulator indirect 5 A certified Moodle Course on Principles of 8085 Microprocessor
  • 6. Copy of Data 6 A certified Moodle Course on Principles of 8085 Microprocessor
  • 7. MOV B,C Register Contents Before execution Register Contents After execution Syntax MOV Destination (des) ,Source (src) – 1 byte Status of Flag Register Flags are not affected No change in Flag contents 7 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src and des B,C,D,E, H,L,A and M (memory) 72 9E B C 9E 9E B C
  • 8. MOV B,M Register Contents Before execution Syntax MOV Destination (des) ,Source (src) – 1 byte Status of Flag Register Flags are not affected No change in Flag contents 8 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src and des B,C,D,E, H,L,A and M (memory) 9E XX XX XX 20 50 Register Contents After execution B D H C E L B D H XX XX XX XX 20 50 C E L 2050 9E
  • 9. MVI M,3A Register Contents Before execution Register Contents After execution Syntax MVI Destination (des) , 8 bit data – 1 byte Status of Flag Register Flags are not affected No change in Flag contents 9 A certified Moodle Course on Principles of 8085 Microprocessor Hint Src is 8 bit data i.e directly passing the value Des is Reg, Mem 20 50 H L 20 50 H L 2050 9E 2050 3A
  • 10. TRY - OUT TASK 1 Execute the instruction MOV A, E and update the contents of A,E registers and status of Flag register. Before execution The content of A - 5F The content of E – 6D TASK 2 Execute the instruction MOV M, B and update the contents of M,B registers and status of Flag register. Before execution The content of H - 40 The content of L – 00 The content of B – 32 Content of 4000 – 6D TASK 3 Execute the instruction MVI A, 2C and update the contents of registers and status of Flag register. Before execution The content of A - 40 10 A certified Moodle Course on Principles of 8085 Microprocessor
  • 11. SOLUTION - TASK 1 Before execution After execution No changes in flag register 11 A certified Moodle Course on Principles of 8085 Microprocessor TASK 1 Execute the instruction MOV A, E and update the contents of A,E registers and status of Flag register. Before execution The content of A - 5F The content of E – 6D A E 5F 6D 6D 6D A E
  • 12. SOLUTION - TASK 2 Before execution After execution No changes in flag register 12 A certified Moodle Course on Principles of 8085 Microprocessor H L B 40 00 32 40 00 32 H L B TASK 2 Execute the instruction MOV M, B and update the contents of M,B registers and status of Flag register. Before execution The content of H - 40 The content of L – 00 The content of B – 32 Content of 4000 – 6D 4000 6D 4000 32
  • 13. SOLUTION - TASK 3 Before execution After execution No changes in flag register 13 A certified Moodle Course on Principles of 8085 Microprocessor A 40 2C A TASK 3 Execute the instruction MVI A, 2C and update the contents of registers and status of Flag register. Before execution The content of A - 40
  • 14. A certified Moodle Course on Principles of 8085 Microprocessor