Write a program to calculate the sum of the series of even numbers.
Program statement :- Write a program in the ALP of 8085 to calculate the sum of series of even numbers. Assume that the length of the series is stored at memory location D000 H and the series itself begins at memory D001 H. Store the result at memory location E000 H. Draw flowchart.
Explanation :-
- Initialize the sum to zero. Load the count of numbers in register C. Iniialize pointer to start of series.
- To check whether the number is even we will AND the number with 01 H. If the result of ANDing is zero it indicates that the number is even. We will add this even number to the initialised sum.
- Decrement counter Increment source pointer to next location. Continue the process till sum of all even numbers is found. Store the sum at memory location E000 H.
Program :
Lable
Instruction
Comment
LDA D000H
MOV C,A
MVI B, 00 H
LXI H, D001 H
Initialize counter
sum = 0
Initialize pointer
Back :
MOV A,M
ANI 01 H
JNZ SKIP
MOV A,B
ADD M
MOV B,A
Get the number
Mask Bit 1 to Bit 7
Don’t add if number is Odd
Get sum
SUM = Sum + data
Store result in B register
SKIP:
INX H
DCR C
JNZ BACK
STA E000H
HLT
Increment pointer
Decrement counter
If counter =/ 0 repeat
Store sum (Result)
Terminate program execution
Write a program to calculate the sum of the series of even numbers.
Program statement :- Write a program in the ALP of 8085 to calculate the sum of series of even numbers. Assume that the length of the series is stored at memory location D000 H and the series itself begins at memory D001 H. Store the result at memory location E000 H. Draw flowchart.
Explanation :-
- Initialize the sum to zero. Load the count of numbers in register C. Iniialize pointer to start of series.
- To check whether the number is even we will AND the number with 01 H. If the result of ANDing is zero it indicates that the number is even. We will add this even number to the initialised sum.
- Decrement counter Increment source pointer to next location. Continue the process till sum of all even numbers is found. Store the sum at memory location E000 H.
Lable
|
Instruction
|
Comment
|
LDA D000H
MOV C,A
MVI B, 00 H
LXI H, D001 H
|
Initialize counter
sum = 0
Initialize pointer
|
|
Back :
|
MOV A,M
ANI 01 H
JNZ SKIP
MOV A,B
ADD M
MOV B,A
|
Get the number
Mask Bit 1 to Bit 7
Don’t add if number is Odd
Get sum
SUM = Sum + data
Store result in B register
|
SKIP:
|
INX H
DCR C
JNZ BACK
STA E000H
HLT
|
Increment pointer
Decrement counter
If counter =/ 0 repeat
Store sum (Result)
Terminate program execution
|
62 comments
Needed to compose one little word yet thanks for the suggestions that you are contributed here, really very much impressed with this blog please do keep on sharing...
ReplyBest Online Software Training Institute | Data Science Training
I am really happy with your blog because your article is very unique and powerful for new reader.
ReplyClick here:
selenium training in chennai
selenium training in bangalore
selenium training in Pune
selenium training in pune
Selenium Online Training
Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
ReplyJava training in Chennai | Java training in USA |
Java training in Bangalore | Java training in Indira nagar | Java training in Bangalore | Java training in Rajaji nagar
Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
ReplyData Science training in rajaji nagar | Data Science Training in Bangalore | Data Science with Python training in chennai
Data Science training in electronic city | Data Science training in USA
Data science training in pune | Data science training in kalyan nagar
Wonderful article, very useful and well explanation. Your post is extremely incredible. I will refer this to my candidates...
Replypython interview questions and answers
python tutorials
python course institute in electronic city
Really very nice blog information for this one and more technical skills are improve,i like that kind of post.
ReplyBest Devops training in sholinganallur
Devops training in velachery
Devops training in annanagar
Devops training in tambaram
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
Replyangularjs interview questions and answers
angularjs Training in bangalore
angularjs Training in bangalore
angularjs online Training
angularjs Training in marathahalli
Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles. Data Science Online Training
ReplyWhen I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.
ReplyAdvanced AWS Training in Bangalore | Amazon Web Services Training in Bangalore
Amazon Web Services Training in Pune | Best AWS Training in Pune
AWS Online Training | Online AWS Certification Course - Gangboard
Top 110 AWS Interview Question and Answers | Advanced AWS interview Questions and Answers – AWS jobs
Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.
ReplyDevops Training in bangalore
Digital Marketing Training in bangalore
Data Science Training in bangalore
Java Training in bangalore
A week ago, I had nothing to do and went to this site wholesome real money casino and decided to take a risk. We only live once to play in a casino. And did not regret
ReplyThank You for this Great Post!Now onward, I will be using these two simple words to everyone I come across with. Indeed everyone wants to feel useful and so everyone deserve these two sweet words.Thank You again!
ReplyAuthorized iphone service center in Chennai | iphone service center in chennai | Mobile service center in chennai | Authorized iphone service center in Chennai | iphone service center in chennai
Thanks for sharing this.
Replylearn digital academy offers, Advanced Digital Marketing Master Course in Bangalore. Thanks for sharing this informative article.
I really admired your post, such great and useful information that you have mentioned here.
ReplyAWS Training in Chennai
AWS course in Chennai
Cloud Computing Training in Chennai
Cloud Computing courses in Chennai
Azure Training in Chennai
Microsoft Azure Training in Chennai
DevOps Training in Chennai
AWS Training in Chennai
AWS course in Chennai
ReplyI greatly appreciate your such a knowledge sharing
100% genuine mobile parts | Laptop service centre in chennai | Mobile service center in chennai | Mobile phone glass replacement in chennai | Mobile phone Battery replacement in chennai | Mobile phone Water damage service | Laptop data recovery service in chennai | 100% genuine mobile parts | Laptop service centre in chennai
I have gone through your blog, it was very much useful for me and because of your blog, and also I gained many unknown information, the way you have clearly explained is really fantastic. Kindly post more like this, Thank You.
ReplyAviation Academy in Chennai
Air hostess training in Chennai
Airport management courses in Chennai
Ground staff training in Chennai
best aviation academy in Chennai
best air hostess training institute in Chennai
airline management courses in Chennai
airport ground staff training in Chennai
Thanks for this article, your post helps me to understand the future and career prospects. Keep updating your blog with the latest information.
ReplyData Science Training Institute in Chennai
Data Science Classes in Chennai
Data Science Training in Tambaram
R Programming Training in Chennai
Data Analytics Training in Chennai
Machine Learning course in Chennai
Machine Learning Training in Velachery
Data Science Training in Chennai
A very nice post. Thanks for sharing such a piece of valuable information...
ReplyData Science with Python Training Bangalore
AWS Training in Kalyan Nagar
RPA training in bellandur
AWS Training in bellandur
Marathahalli AWS Training Institues
Kalyan nagar AWS training in institutes
Data Science Training in bellandur
Data Science Training in Kalyan Nagar
Thanks for sharing such a wonderful Post with us. I learnt alot from your post. I am appreciating from you to you will share more information about it. Please keep sharing. Thanks Alot
ReplyLenovo Service Center in Hyderabad.
Best Laptop Service Center in Kukatpally, Hyderabad.
Really very nice blog information for this one and more technical skills are improve,i like that kind of post.
Replysalesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore
Nice Post...I have learn some new information.thanks for sharing.
ReplyData Science Courses in Bangalore | Data Science training | Best Data Science institute in Bangalore
For Devops Training in Bangalore
ReplyYour post is just outstanding! thanx for such a post,its really going great and great work.
Replypython training in kalyan nagar|python training in marathahalli
selenium training in marathahalli|selenium training in bangalore
devops training in kalyan nagar|devops training in bellandur
phthon training in bangalore
Good post!Thank you so much for sharing this lovely article.It was so good to read and useful to upgrade my understanding...
ReplyHadoop training in Bangalore|
Big Data Training in Bangalore|
Big Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Hadoop Training in Marathahalli|
Angular JS Training in Bangalore
Thanks for sharing an informative article. keep update like this...
ReplyData Analytics with R Training in Bangalore
Hadoop training center in bangalore
AWS training in bangalore
AWS training in marathahalli
Python training in marathahalli
Hadoop training in marathahalli
Python training in bangalore
Attend The Artificial Intelligence courses From ExcelR. Practical Artificial Intelligence courses Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Artificial Intelligence courses.
ReplyExcelR Artificial Intelligence courses
Good post!Thank you so much for sharing this lovely article.It was so good to read and useful to upgrade my understanding...
Replysalesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore
Attend Business Analytics Training in Mumbai with 100% Syllabus Covered also Attend the Best Data Science Course in Mumbai. Faculty are From IIT & ISB. ExcelR is the Best Institute for Data Science Training in Mumbai
ReplyData Analytics Courses in Mumbai
Useful Information, your blog is sharing unique information....
ReplyThanks for sharing!!!
aws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Attend The PMP Certification in Abu Dhabi From ExcelR. Practical PMP Certification in Abu Dhabi Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The PMP Certification in Abu Dhabi.
ReplyExcelR PMP Certification in Abu Dhabi
A very nice post. Thanks for sharing such a piece of valuable information...
Replyaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Attend The PMP Certification in Abu Dhabi From ExcelR. Practical PMP Certification in Abu Dhabi Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The PMP Certification in Abu Dhabi.
ReplyExcelR PMP Certification in Abu Dhabi
Good post!Thank you so much for sharing this lovely article.It was so good to read and useful to upgrade my understanding...
Replyaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Nice...
Replybitwise aptitude questions
how to hack flipkart legally
zenq interview questions
count ways to n'th stair(order does not matter)
zeus learning subjective test
ajax success redirect to another page with data
l&t type 2 coordination chart
html rollover image
hack android phone using cmd
how to hack internet speed upto 100mbps
Good...
Replyinternships in chennai
winter internship mechanical engineering
internship for aeronautical engineering students in india 2019
kaashiv
list of architectural firms in chennai for internship
paid internships in pune for computer science students
diploma final year project topics for information technology
internship
data science internship report
inplant training
Attend The Data Analytics Course in Bangalore with Placement From ExcelR. Practical Data Analytics Course in Bangalore with Placement Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analytics Course in Bangalore with Placement.
ReplyExcelR Data Analytics Course in Bangalore with Placement
This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.
Replydata science course in mumbai
The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. IEEE final year projects on machine learning In case you will succeed, you have to begin building machine learning projects in the near future.
ReplyProjects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.
Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
ReplyExcelR Data Science Course
I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
Replydata analytics course mumbai
Awesome post...
Replyinternship report on python
free internship in chennai for ece students
free internship for bca
internship for computer science engineering students in india
internships in hyderabad for cse students 2018
electrical companies in hyderabad for internship
internships in chennai for cse students 2019
internships for ece students
inplant training in tcs chennai
internship at chennai
Nice Infromation....
Replyinternship in chennai for ece students with stipend
internship for mechanical engineering students in chennai
inplant training in chennai
free internship in pune for computer engineering students
internship in chennai for mca
iot internships
internships for cse students in hyderabad
implant training in chennai
internship for aeronautical engineering students in bangalore
inplant training certificate
very nice post.........
Replyr programming training in chennai
internship in bangalore for ece students
inplant training for mechanical engineering students
summer internships in hyderabad for cse students 2019
final year project ideas for information technology
bba internship certificate
internship in bangalore for ece
internship for cse students in hyderabad
summer training for ece students after second year
robotics courses in chennai
This is my first time visit here. From the tons of comments on your articles.I guess I am not only one having all the enjoyment right here!
ReplyData Science Courses Malaysia
Big Data Analytics Malaysia
Data Analytics Course Malaysia
Nice post...
Reply3d-modeler-resume-samples
3d modeler resume samples
accounting-assistant-resume-sample
accounting-clerk-resume-sample
accounting-manager-resume-samples
account-manager-resume-examples
accounts-payable-resume-sample
admin-manager-resume-samples
advocate-resume-sample
advocate-resume-sample
it is good blogs!!!
Replypaid internships in pune for computer science students
machine learning training in chennai
data science internship in chennai
dot net training in chennai
kaashiv infotech chennai
internship for aeronautical engineering students in india
internship in automobile industry
big data internship in chennai
machine learning internship in chennai
internship in chennai for it students
branch-operations-manager-resume-samples
Replybusiness-executive-resume-samples
business-owner-resume-samples
business-to-business-sales-resume-sample-sales-resumes
cad-design-engineer-resume-samples
call-centre-jobs-resume-sample
ca-resume-samples-chartered-accountant-resume-format
cassandra-database-administrator-resume
category/accountant-resume
category/admin-resume
good....nice
Replycategory/advocate-resume
category/agriculture-forestry-fishing
category/android-developer-resume
category/assistant-professor-resume
category/chartered-accountant-resume
category/database-resume
category/design-engineer-resume
category/developer-resume
category/engineer-resume
category/entrepreneur-and-financial-services-resume
good..nice..
Replyassistant-director-resume-format
assistant-director-resume-sample
assistant-professor-resume-sample
back-office-executive-resume-samples
bank-branch-manager-resume-samples
basketball-coach-resume-sample-coach-resumes
bca-fresher-resume-sample
best-general-manager-resume-example
bpo-resume-freshers-sample
bpo-resume-samples-for-freshers
I want to say thanks to you. I have bookmark your site for future updates.
Replyartificial intelligence in malaysia
big data course malaysia
360DigiTMG
good ....nice...
Replyresume/category/software-testing-resume
resume/category/sslc-resume
resume/category/storekeeper-resume
resume/category/stylist-resume
resume/category/teachers-resume
resume/category/technical-architect-resume
resume/category/web-developer-resume
cics-system-programmer-resume-example
resume/cisco-network-engineer-resume
resume/cisco-network-engineer-resume-sample
good.....nice..
Replycategory/maintenance-resume
category/manager-resume
category/mechanical-engineering-resume
category/network-engineer-resume
category/officer-resume
category/operations-resume
category/process-associate-resume
category/quality-control-resumes
category/software-engineer-resume
good... nice... very useful..
Replyassistant-director-resume-format
director-resume-sample
assistant-professor-resume-sample
back-office-executive-resume-samples
bank-branch-manager-resume-samples
basketball-coach-resume-sample-coach-resumes
bca-fresher-resume-sample
best-general-manager-resume-example
bpo-resume-freshers-sample
bpo-resume-samples-for-freshers
it is best blogs ....
Replycivil-engineer-resume-format
client-service-executive-resume-sample
cognos-developer-resume-samples
college-lecturer-resume
college-lecturer-resume-sample
commercial-assistant-resume-sample
compliance-officer-resume-samples
computer-teacher-resume-format
computer-teacher-resume-sample
cordova-developer-resume-sample
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
Replythanks and regards : best data science course in pune with placement
Replyfilm-director-resume
finance-and-accounting-manager-resume-samples
finance-director-resume-examples
fire-safety-officer-resume-sample
fleet-maintenance-manager-resume-samples
format-for-resume-writing
fresher-computer-engineers-resume-sample
fresher-hr-resume-sample
fresher-hr-resume-sample-2
fresher-lecturer-resume
It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it!big data analytics course malaysia
Reply360DigiTMG data science course malaysia
data analytics courses
360DigiTMG
Awesome and thanks for giving this blog.
ReplyData Science Course in Chennai
Data Science Online Course
Data Science Course in Bangalore
Great Article Journal Paper Writing Services projects for cse JavaScript Training in Chennai JavaScript Training in Chennai Project Centers in Chennai
ReplyPost a Comment