Assume that registers $s0 and $s1 hold the values 0x80000000 and 0xd0000000. respectively.

Assume that registers $ s0 and $ s1 hold the values 0x80000000
and 0xD0000000, respectively.

Using the contents of registers $s0 and $s1, as specified above,
what is the value of $t0 for the following assembly code and
specify if overflow has occurred.

   MIPs assembly code

               
Value of $t0

               
Overflow?

        add $ t0, $ s0, $
s1
         sub $ t0, $ s0,
$ s1
    add $ t0, $ s0, $ s1

    add $ t0, $ t0, $ s0

Answer

Solution:

Explanation:

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts