SlideShare a Scribd company logo
1 of 3
T.Y.EII Microprocessor-IV N.KAPOOR 
Programming the 8085® It is the process of developing a program. A program is a sequence 
of instructions operating on certain data items. There are many 
possible languages in which program is written but a mp can understand only instructions written 
in binary i.e. 0’s & 1’s. A program written using only 0 & 1 is called machine language program. 
Writing machine language program is quiet troublesome and leads to error. 
The program can also be written using mnemonic operation codes & symbolic address for 
writing instructions & the data using different notations i.e. binary, decimal hexadecimal etc. This 
is called assembly language. Program written in assembly language has to be translated into a 
machine language. A translator, which translates an assembly language program into a 
machine language program is known as assembler. 
High Level Languages ® Programming Languages that are machine- independent are called 
HLL. e.g. FORTRAN -- ( Formula Translation) It is a language that is designed for scientists & 
engineers. 
COBOL -- Common Business Oriented Language. 
BASIC --- Beginner’s All-purpose symbolic instruction Code -- for non- professional programs to 
learn & use. 
PASCAL -- it is designed to encourage the programmer to adhere to correct programming 
practices C & C++ . 
These programs which are written in English are converted into binary language using program 
called a compiler or interpreter. 
Flow Chart® The steps necessary to write program can be represented in a pictorial format 
called a “ flow chart.” Flow charts use graphic symbols ( shapes) to represent different types of 
program operations. The specific operation desired is written in the graphic symbols. The 
common flow chart symbols are, It shows direction of program execution. 
beginning or ending of program. 
process 
Subroutines 
Decision 
Continuation 
The algorithm represented by flow chart is coded into assembly language and then mnemonics 
for different steps are written & program is translated into machine language i.e. machine code 
is written for each instruction. Each code is then has to be stored in memory location. 
( R/W memory ) Thus program has five columns memory add Machine code, opcode, operand 
& Comments. 
(1) Memory Address® These are 2 byte R/W users memory in systems where machine code 
of program is stored. The beginning address is generally xyoo, Where xy represent page no. of 
available R/W memory in mp & 00 represents line no. 
(2) Machine Code® These are hexadecimal instruction codes that are stored in respective 
memory addresses through hexadecimal keyboard of mp. The monitor program which is stored 
in ROM of mp translates hexadecimal number into binary digits & stores binary digits in the R/W 
memory. 
(3) Op Code® It indicates type of operation or function that will be performed by machine code. 
(4) Operand® It specifies the item to be processed. It can be 8 or 16 bit data, a register or a 
memory address. Thus a mnemonic instruction is combination of an opcode and operand. 
(5) Comment® It explains the purpose of instruction used. They play a critical role in users 
understanding of the logic behind the program. 
To enter & execute the program® 
1. Push reset key. 
2. Enter 16.bit memory address of 1st machine code of programme. 
3. Enter and store all the machine codes sequentially using hexadeciml key board on system. 
4. Reset the system. 
5. Enter memory address where the programme begins and push execute key.
T.Y.EII Microprocessor-IV N.KAPOOR 
After executing the programme answer can be found in accumulator by pushing “Examine 
register key”. 
Debugging the programme: It is nothing but finding the troubleshooting in a programme. 
Dehugging process can be divided into two parts, 1) Static debugging 2) Dynamic debugging 
Static debugging: It consist of cheking flow charts and machine code point by point. 
Dynamic debugging: It involves observing the o/p or register contents following the execution of 
each instruction single step technique or of a group of instructions (the break point techniques. 
The common errors are: 
1. Selecting a wrong code. 
2. Forgetting 2nd and 3rd byte of an instruction. 
3. Specifying ROM jump location. 
4. Not reversing order of high and low bytes in the jump instructions. 
5. Writing memory address in decimal and thus specifying wrong jump locations. 
Program® Add the two numbers stored in 2100 & 2101 and store the result at 2102. 
START 
| 
HL 2100 
HL ® A 
HL ® HL+1 
A A+ HL 
Store A®2102 
END 
Address Mnemonic Opcode Comment 
2000 LXIH 2100 21 Load memory location 
2001 00 in HL pair 
2002 21 
2003 MOV A, M 7E Move content of M to A 
2004 INX H 23 Increment location shown in HL 
2005 ADD M 86 Add contents of M to accumulator 
2006 STA 2102 32 Store content of accumulator 
2007 02 at location 2102 
2008 21 
2009 HLT ( RST) 76 (CF) STOP 
2) Subtraction of numbers ® Same as above except ADD M ® SUB M & 86 ® 96 
3)Multiplication of two numbers by addition method® 
START Address Mnemonics Opcode Comment 
2000 MVI B O2 06 Loading register B 
load B = Data 2001 02 with 02 
load C = Data 2002 MVI C 03 0E Load register C 
A = 00 2003 03 with 03 
2004 MVI A 00 3E Clear the 
accumulator 
2005 00 
A A + C 2006 loop ADD C 89 Add C to accumulator 
2007 DCR B 05 
2008 JNZ 2006 C2 If B ¹ 0 then repeat 
B = B - 1 2009 06 the process 
200A 20
No Is 200B STA 2102 32 Store the answer at 
B=0 200C 02 2102 
YES 200D 21 
Save Product 200E HLT 76 Stop 
STOP

More Related Content

What's hot

Issues in the design of Code Generator
Issues in the design of Code GeneratorIssues in the design of Code Generator
Issues in the design of Code GeneratorDarshan sai Reddy
 
An Overview of Programming C
An Overview of Programming CAn Overview of Programming C
An Overview of Programming CNishargo Nigar
 
Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)Shujaat Abbas
 
introduction to c language
 introduction to c language introduction to c language
introduction to c languageRai University
 
C programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakilC programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakilZenith SVG
 
Computer programming - turbo c environment
Computer programming - turbo c environmentComputer programming - turbo c environment
Computer programming - turbo c environmentJohn Paul Espino
 
What is turbo c and how it works
What is turbo c and how it worksWhat is turbo c and how it works
What is turbo c and how it worksMark John Lado, MIT
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programmingAlpana Gupta
 
Introduction to c programming,
Introduction to c programming,Introduction to c programming,
Introduction to c programming,Shabista Imam
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programmingManoj Tyagi
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming pooja saini
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programmingTarun Sharma
 
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer ScienceTransweb Global Inc
 
Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2satyabrataDash18
 
Turbo C Compiler Reports
Turbo C Compiler Reports Turbo C Compiler Reports
Turbo C Compiler Reports Sunil Kumar R
 

What's hot (20)

Issues in the design of Code Generator
Issues in the design of Code GeneratorIssues in the design of Code Generator
Issues in the design of Code Generator
 
CHAPTER 1
CHAPTER 1CHAPTER 1
CHAPTER 1
 
An Overview of Programming C
An Overview of Programming CAn Overview of Programming C
An Overview of Programming C
 
Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)
 
introduction to c language
 introduction to c language introduction to c language
introduction to c language
 
C programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakilC programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakil
 
Computer programming - turbo c environment
Computer programming - turbo c environmentComputer programming - turbo c environment
Computer programming - turbo c environment
 
What is turbo c and how it works
What is turbo c and how it worksWhat is turbo c and how it works
What is turbo c and how it works
 
Book ppt
Book pptBook ppt
Book ppt
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Introduction to c programming,
Introduction to c programming,Introduction to c programming,
Introduction to c programming,
 
Intro
IntroIntro
Intro
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
 
Introduction of c language
Introduction of c languageIntroduction of c language
Introduction of c language
 
Sap 1
Sap 1Sap 1
Sap 1
 
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer Science
 
Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2
 
Turbo C Compiler Reports
Turbo C Compiler Reports Turbo C Compiler Reports
Turbo C Compiler Reports
 

Similar to Programming the 8085 Microprocessor - An Overview of Assembly Language, Flow Charts, Debugging and Sample Programs

Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)Ashim Saha
 
Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...Maitri Thakkar
 
naveeth ppt py.pptx
naveeth ppt py.pptxnaveeth ppt py.pptx
naveeth ppt py.pptxFayazx2xlevi
 
Basic programming of 8085
Basic programming of 8085 Basic programming of 8085
Basic programming of 8085 vijaydeepakg
 
Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptxssuserb78e291
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computerKamal Acharya
 
Assembler Programming
Assembler ProgrammingAssembler Programming
Assembler ProgrammingOmar Sanchez
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085techbed
 
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlBca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlRai University
 
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlB.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlRai University
 
Microprocessor chapter 9 - assembly language programming
Microprocessor  chapter 9 - assembly language programmingMicroprocessor  chapter 9 - assembly language programming
Microprocessor chapter 9 - assembly language programmingWondeson Emeye
 
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
 
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
 
Assembly Language Programming
Assembly Language ProgrammingAssembly Language Programming
Assembly Language ProgrammingNiropam Das
 
Examinable Question and answer system programming
Examinable Question and answer system programmingExaminable Question and answer system programming
Examinable Question and answer system programmingMakerere university
 
Assembly Language In Electronics
Assembly Language In ElectronicsAssembly Language In Electronics
Assembly Language In ElectronicsAsaduzzaman Kanok
 

Similar to Programming the 8085 Microprocessor - An Overview of Assembly Language, Flow Charts, Debugging and Sample Programs (20)

Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)
 
Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...
 
Computer Organization
Computer Organization Computer Organization
Computer Organization
 
naveeth ppt py.pptx
naveeth ppt py.pptxnaveeth ppt py.pptx
naveeth ppt py.pptx
 
Basic programming of 8085
Basic programming of 8085 Basic programming of 8085
Basic programming of 8085
 
Spr ch-02
Spr ch-02Spr ch-02
Spr ch-02
 
Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
 
Assembler Programming
Assembler ProgrammingAssembler Programming
Assembler Programming
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
 
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlBca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
 
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlB.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
 
Microprocessor chapter 9 - assembly language programming
Microprocessor  chapter 9 - assembly language programmingMicroprocessor  chapter 9 - assembly language programming
Microprocessor chapter 9 - assembly language programming
 
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
 
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
 
Alp 05
Alp 05Alp 05
Alp 05
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
 
Assembly Language Programming
Assembly Language ProgrammingAssembly Language Programming
Assembly Language Programming
 
Examinable Question and answer system programming
Examinable Question and answer system programmingExaminable Question and answer system programming
Examinable Question and answer system programming
 
Assembly Language In Electronics
Assembly Language In ElectronicsAssembly Language In Electronics
Assembly Language In Electronics
 

Recently uploaded

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
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
 
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
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
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
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
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
 
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
 
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
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
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
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
(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
 
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
 

Recently uploaded (20)

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
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
 
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
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
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
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
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...
 
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
 
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
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
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
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
(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...
 
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...
 

Programming the 8085 Microprocessor - An Overview of Assembly Language, Flow Charts, Debugging and Sample Programs

  • 1. T.Y.EII Microprocessor-IV N.KAPOOR Programming the 8085® It is the process of developing a program. A program is a sequence of instructions operating on certain data items. There are many possible languages in which program is written but a mp can understand only instructions written in binary i.e. 0’s & 1’s. A program written using only 0 & 1 is called machine language program. Writing machine language program is quiet troublesome and leads to error. The program can also be written using mnemonic operation codes & symbolic address for writing instructions & the data using different notations i.e. binary, decimal hexadecimal etc. This is called assembly language. Program written in assembly language has to be translated into a machine language. A translator, which translates an assembly language program into a machine language program is known as assembler. High Level Languages ® Programming Languages that are machine- independent are called HLL. e.g. FORTRAN -- ( Formula Translation) It is a language that is designed for scientists & engineers. COBOL -- Common Business Oriented Language. BASIC --- Beginner’s All-purpose symbolic instruction Code -- for non- professional programs to learn & use. PASCAL -- it is designed to encourage the programmer to adhere to correct programming practices C & C++ . These programs which are written in English are converted into binary language using program called a compiler or interpreter. Flow Chart® The steps necessary to write program can be represented in a pictorial format called a “ flow chart.” Flow charts use graphic symbols ( shapes) to represent different types of program operations. The specific operation desired is written in the graphic symbols. The common flow chart symbols are, It shows direction of program execution. beginning or ending of program. process Subroutines Decision Continuation The algorithm represented by flow chart is coded into assembly language and then mnemonics for different steps are written & program is translated into machine language i.e. machine code is written for each instruction. Each code is then has to be stored in memory location. ( R/W memory ) Thus program has five columns memory add Machine code, opcode, operand & Comments. (1) Memory Address® These are 2 byte R/W users memory in systems where machine code of program is stored. The beginning address is generally xyoo, Where xy represent page no. of available R/W memory in mp & 00 represents line no. (2) Machine Code® These are hexadecimal instruction codes that are stored in respective memory addresses through hexadecimal keyboard of mp. The monitor program which is stored in ROM of mp translates hexadecimal number into binary digits & stores binary digits in the R/W memory. (3) Op Code® It indicates type of operation or function that will be performed by machine code. (4) Operand® It specifies the item to be processed. It can be 8 or 16 bit data, a register or a memory address. Thus a mnemonic instruction is combination of an opcode and operand. (5) Comment® It explains the purpose of instruction used. They play a critical role in users understanding of the logic behind the program. To enter & execute the program® 1. Push reset key. 2. Enter 16.bit memory address of 1st machine code of programme. 3. Enter and store all the machine codes sequentially using hexadeciml key board on system. 4. Reset the system. 5. Enter memory address where the programme begins and push execute key.
  • 2. T.Y.EII Microprocessor-IV N.KAPOOR After executing the programme answer can be found in accumulator by pushing “Examine register key”. Debugging the programme: It is nothing but finding the troubleshooting in a programme. Dehugging process can be divided into two parts, 1) Static debugging 2) Dynamic debugging Static debugging: It consist of cheking flow charts and machine code point by point. Dynamic debugging: It involves observing the o/p or register contents following the execution of each instruction single step technique or of a group of instructions (the break point techniques. The common errors are: 1. Selecting a wrong code. 2. Forgetting 2nd and 3rd byte of an instruction. 3. Specifying ROM jump location. 4. Not reversing order of high and low bytes in the jump instructions. 5. Writing memory address in decimal and thus specifying wrong jump locations. Program® Add the two numbers stored in 2100 & 2101 and store the result at 2102. START | HL 2100 HL ® A HL ® HL+1 A A+ HL Store A®2102 END Address Mnemonic Opcode Comment 2000 LXIH 2100 21 Load memory location 2001 00 in HL pair 2002 21 2003 MOV A, M 7E Move content of M to A 2004 INX H 23 Increment location shown in HL 2005 ADD M 86 Add contents of M to accumulator 2006 STA 2102 32 Store content of accumulator 2007 02 at location 2102 2008 21 2009 HLT ( RST) 76 (CF) STOP 2) Subtraction of numbers ® Same as above except ADD M ® SUB M & 86 ® 96 3)Multiplication of two numbers by addition method® START Address Mnemonics Opcode Comment 2000 MVI B O2 06 Loading register B load B = Data 2001 02 with 02 load C = Data 2002 MVI C 03 0E Load register C A = 00 2003 03 with 03 2004 MVI A 00 3E Clear the accumulator 2005 00 A A + C 2006 loop ADD C 89 Add C to accumulator 2007 DCR B 05 2008 JNZ 2006 C2 If B ¹ 0 then repeat B = B - 1 2009 06 the process 200A 20
  • 3. No Is 200B STA 2102 32 Store the answer at B=0 200C 02 2102 YES 200D 21 Save Product 200E HLT 76 Stop STOP