Question

2.13 Assume that $s0 holds the value 128, ten 2.13.1 [5]<§2.4> For the instruction add sto, sso, ssl, what is the range(s) o

$s0 - holds value of 128 (see top of image)

No additional information has been provided by the textbook to answer the following questions.

Any help for any of the following questions is appreciated!

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

2.13

2.13.1

given $s0 holds value 128

instruction add $t0,$s0,$s1 will add $s0,$s1 and store it in $t0 the maximum value an integer can hold in mips is upto 2^32 - 1 digits so the maximum value upto which $s1 holds is 2,147,483,519 and minimum value is -2147483776

The range value is -2^31-128>$s1 >2^32-128

2.13.2

instruction sub $t0,$s0,$s1 will subtract $s1 from $s0 and store it in $t0 i.e $t0 = $s0-$s1

the range of s1 is -2^32+128>$s1>2^31+128

2.13.3

instruction sub $t0,$s1,$s0 will subtract $s0 from $s1 and store it in $t0 i.e $t0 = $s1-$s0

the range of s1 is -2^31+128>$s1>2^32-128

Add a comment
Know the answer?
Add Answer to:
$s0 - holds value of 128 (see top of image) No additional information has been provided by the textbook to answer the f...
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