Home
About
Blogs
Home
Mega Menu
Facebook
Random Posts
3/random/post-list
Popular Posts
Re-Order Paragraph in PTE Exam
March 18, 2024
Protection of Electrical Networks
March 15, 2014
SF6 Circuit Breaker Inside Assembly, SF6 Gas Fill Up Point and GAS chamber Views.
July 04, 2023
Contact form
Name
Email
*
Message
*
Home
Dhruvang Suthar
March 08, 2012
Count number of one's in a number
Statement
:
Write a program to count number of l's in the contents of D register and store the count in the B register.
Sample problem 1:
(2200H) = 04
(2201H) = 34H
(2202H) = A9H
(2203H) = 78H
(2204H) =56H
Result = (2202H) = A9H
Source program :
MVI B, 00H
MVI C, 08H
MOV A, D
BACK: RAR
JNC SKIP
INR B
SKIP: DCR C
JNZ BACK
HLT
Flowchart for program
Post a Comment
0 Comments
Social Plugin
Certificate of Completion
Certificate No.CERT001561786-EMI
🇮🇳Welcome To My Blogs.🇮🇳
🥇BE-Electrical🥈 PGDM-Marketing. 🥉Data Scientists. 🏅MEP-Electrical.
Total Pageviews
This Page is a little effort to make you Sharing of some own materials .This is just a Kick-Start to make the aware of Practical World !!! Best of luck.-DHRUVANG SUTHAR
Close Menu
0 Comments