Question

4. (5 marks) Suppose that r1=0xffffffff and r2=0x2. After an add ri, r2 instruction in Thumb-2 mode, what will be the value

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

After the execution of the instruction "add r1, r2", the result will be:

R1 = 0x00000001

R2 = 0x2

Negative(N) flag = 0 (Not Set as MSB bit of result is zero)

Overflow(V) flag = 1 (Set i.e., overflow occurred)

Add a comment
Know the answer?
Add Answer to:
4. (5 marks) Suppose that r1=0xffffffff and r2=0x2. After an "add ri, r2" instruction in Thumb-2...
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