Question

write an assembly program that counts the number of bits that are set to a ‘1, in RO, and writes the total to R1. When finish

0 0
Add a comment Improve this question Transcribed image text
Answer #1
2000 MVI R0 X
2002 MVI C 08
2004 MVI D 00
2006 MOV A, B
2007 RRC
2008 JNC 200C
200B INR D
200C DCR C
200D JNZ 2007
2010 MOV A, D
2011 MOV R1, A
2014 JMP 2000
Add a comment
Know the answer?
Add Answer to:
write an assembly program that counts the number of bits that are set to a ‘1, in RO, and writes the total to R1. When finished, enter an infinite loop. 2. write an assembly program that counts...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT