Question: 3 . The MIPS addu instruction performs the same operation as the MIPS add instruction. The only difference is that after the sum is produced,
The MIPS addu instruction performs the same operation as the MIPS add instruction. The only
difference is that after the sum is produced, add triggers an exception if a signed overflow
occurs, while addu does not trigger an exception. Both addu and add treat the contents of
registers as twos complement numbers and both perform signed addition.
a Assume that register $ contains and register $ contains Show, in hex, the
bit result produced by the instruction addu $ $ $
Contents of $x
Is this the correct sum? Explain your answer.
b Assume that register $ contains xFFFFFFE and register $ contains x Show, in
hex, the bit result produced by the instruction addu $ $ $
Contents of $x
Is this the correct sum? Explain your answer.
c Assume that register $ contains and register $ contains Show, in
hex, the bit result produced by the instruction addu $ $ $
Contents of $x
Is this the correct sum? Explain your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
