Featured

    Featured Posts

Write a program to calculate the sum of the series of even numbers.


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 :-
  1. Initialize the sum to zero. Load the count of numbers in register C. Iniialize pointer to start of series.
  2. 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.
  3. 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


39 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...
Best Online Software Training Institute | Data Science Training

Reply

I am really happy with your blog because your article is very unique and powerful for new reader.
Click here:
selenium training in chennai
selenium training in bangalore
selenium training in Pune
selenium training in pune
Selenium Online Training

Reply

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.
Java 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

Reply

Wonderful article, very useful and well explanation. Your post is extremely incredible. I will refer this to my candidates...
python interview questions and answers
python tutorials
python course institute in electronic city

Reply

Really very nice blog information for this one and more technical skills are improve,i like that kind of post.
Best Devops training in sholinganallur
Devops training in velachery
Devops training in annanagar
Devops training in tambaram

Reply

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.

angularjs interview questions and answers

angularjs Training in bangalore

angularjs Training in bangalore

angularjs online Training

angularjs Training in marathahalli

Reply

Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles. Data Science Online Training

Reply

When 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.

Advanced 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


Reply

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.
Devops Training in bangalore
Digital Marketing Training in bangalore
Data Science Training in bangalore
Java Training in bangalore

Reply
This comment has been removed by the author.

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

Reply

Thank 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!
Authorized 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

Reply

Thanks for sharing this.
learn digital academy offers, Advanced Digital Marketing Master Course in Bangalore. Thanks for sharing this informative article.

Reply

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.
Aviation 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

Reply
This comment has been removed by the author.
This comment has been removed by the author.

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
Lenovo Service Center in Hyderabad.
Best Laptop Service Center in Kukatpally, Hyderabad.

Reply

Really very nice blog information for this one and more technical skills are improve,i like that kind of post.
salesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore


Reply

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.
ExcelR Artificial Intelligence courses

Reply

Good post!Thank you so much for sharing this lovely article.It was so good to read and useful to upgrade my understanding...
salesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore

Reply

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
Data Analytics Courses in Mumbai

Reply

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.
ExcelR PMP Certification in Abu Dhabi

Reply

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.
ExcelR PMP Certification in Abu Dhabi

Reply

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.
ExcelR Data Analytics Course in Bangalore with Placement

Reply

Post a Comment

www.CodeNirvana.in

www.posthatke.com. Powered by Blogger.
Copyright © www.posthatke.com | Blogger Templates | Designed By posthatke.com