Question: Exercise 2.9 The table below contains various values for register $s1. You will be asked to evaluate if there would be overfl ow for a
Exercise 2.9 The table below contains various values for register $s1. You will be asked to evaluate if there would be overfl ow for a given operation.
a. 2147483647ten
b. 0xD0000000sixteen 2.9.1 [5] <2.4> Assume that register $s0 = 0x70000000 and $s1 has the value as given in the table. If the instruction: add $s0, $s0, $s1 is executed, will there be overfl ow?
2.9.2 [5] <2.4> Assume that register $s0 = 0x80000000 and $s1 has the value as given in the table. If the instruction: sub $s0, $s0, $s1 is executed, will there be overfl ow?
2.9.3 [5] <2.4> Assume that register $s0 = 0x7FFFFFFF and $s1 has the value as given in the table. If the instruction: sub $s0, $s0, $s1 is executed, will there be overfl ow?
The table below contains various values for register $s1. You will be asked to evaluate if there would be overfl ow for a given operation.
a. 1010 1101 0001 0000 0000 0000 0000 0010two
b. 1111 1111 1111 1111 1011 0011 0101 0011two 2.9.4 [5] <2.4> Assume that register $s0 = 0x70000000 and $s1 has the value as given in the table. If the instruction: add $s0, $s0, $s1 is executed, will there be overfl ow?
2.9.5 [5] <2.4> Assume that register $s0 = 0x70000000 and $s1 has the value as given in the table. If the instruction: add $s0, $s0, $s1 is executed, what is the result in hex?
2.9.6 [5] <2.4> Assume that register $s0 = 0x70000000 and $s1 has the value as given in the table. If the instruction: add $s0, $s0, $s1 is executed, what is the result in base ten?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
