Assuming register s0 contains a 32bit data item representing

Assuming register $s0 contains a 32-bit data item representing in hexadecimal as 0xBABE2DAD. What is the content of register $s1 in hexadecimal after a MIPS processor executes the following instruction?

nor $s1, $s0, $zero

(explain)

Solution

Solution:

nor means not of or.

thus, the above instruction can be understood as:

not (or $s1, $s2, $zero)

The binary value for the hex number 0xBABE2DAD is:

10111010101111100010110110101101

after oring this value of $s0 with the zero register which contains only zero values, we get:

10111010101111100010110110101101

00000000000000000000000000000000

--------------------------------------------------------------

10111010101111100010110110101101

now complementing the values to get the values for nor operation, we get:

01000101010000011101001001010010

the hexadecimal value corresponding to this binary value will be stored in $s1, i.e.

0x4541D252

Assuming register $s0 contains a 32-bit data item representing in hexadecimal as 0xBABE2DAD. What is the content of register $s1 in hexadecimal after a MIPS pro

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site