2.8.1 The following problems deal with sign extension and overflow. Registers $s0 and
$s1 hold the values as shown in the table below. You will be asked to perform an
MIPS assembly language instruction on these registers and show the result.
a. $s0 = 0x80000000sixteen, $s1 = 0xD0000000sixteen
b. $s0 = 0x00000001sixteen, $s1 = 0xFFFFFFFFsixteen
[5] <2.4> For the contents of registers $s0 and $s1 as specified above, what
is the value of $t0 for the following assembly code?
add $t0, $s0, $s1
Is the result in $t0 the desired result, or has there been overflow?
 
 
View Solution
 
 
 
<< Back Next >>