Question

What is the value in R5 after the following instructions are executed in MSP430? (Note: 1234h...

What is the value in R5 after the following instructions are executed in MSP430? (Note: 1234h indicates that it is a hexadecimal number. ) MOV #1234h, R5 SWPB R5 a) 4321 b) 3412 c) 2143h d) 3412h

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

MOV #1234h, R5 //R5 contains #1234h

SWPB R5 //This Instruction Swap bytes in register , So 1234 is two bytes : 12 is 1 byte and 34 is 1 byte :

So, bytes will be swapped , It will become 3412h


Option (b) 3412

Add a comment
Know the answer?
Add Answer to:
What is the value in R5 after the following instructions are executed in MSP430? (Note: 1234h...
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