Question

8051 assembly Write code to multiply the contents of the B register by 77. (2 instructions.)...

8051 assembly

Write code to multiply the contents of the B register by 77. (2 instructions.) Based on your code, in which register would you expect to find the most significant byte of the product?

Write code to divide the contents of the A register by 10. (2 instructions.)  Based on your code, in which register would you expect to find the remainder?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MOV A,#77H;

MUL AB

the result of the of the code will be stored in the register A,

therefore the most significant byte of the product is stored in register A.

MOV B,#10;

DIV AB;

the result of division has two parts:

quotient and remainder

Register A will hold quotient and Register B will hold remainder.

Add a comment
Know the answer?
Add Answer to:
8051 assembly Write code to multiply the contents of the B register by 77. (2 instructions.)...
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