Question

Iin assembly Write an instruction to divide a signed number in register R16 by 2. Write...

Iin assembly

Write an instruction to divide a signed number in register R16 by 2.

Write an instruction to multiply an unsigned number in register R16 by 2.

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

1.

TO DIVIDE:

SAR R16, 1 // IT SAYS SHIFT ARITHMETIC RIGHT BY 1 BIT. USED FOR DIVIDE BY 2.

TO MULTIPLY:

SLL R16, 1 // IT SAYS SHIFT LOGICALLY LEFT BY 1 BIT USED FOR MULTIPLY OPERATION.

Add a comment
Know the answer?
Add Answer to:
Iin assembly Write an instruction to divide a signed number in register R16 by 2. Write...
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