Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help ASAP with explanation please 2\'s complement arithmetic is not close

ID: 3763831 • Letter: P

Question

Please help ASAP with explanation please

2's complement arithmetic is not closed on negation.in the other words, there exists a value x such that -x is not representable because it goes out of range. for 4-bit 2's complement, what is x?

the second question is multible choise: which on of 5 choise is correct:

2-which of the following does not describe an instruction in the MIPS ISA as discussed in this course

1- load 32-bit word from memory into a register

2- store a 32-bit word from a register into memory

3- jump to a function saving the return address in a register

4- replace two 32-bit values from top of a stack stored in memory with their sum

5- place a 16- bit immediate value in the top 16 bits of a register and zero the bottom 16 bits

Explanation / Answer

1)

In signed magnitude +0 can be represented using 4 bits 0000 and -0 can be represented in 1000.

-0 cannot be represented in 2’s complement because it goes out of the range of 4 bits because:

Consider 0-0000

1’s complement of 0 is 1111

And 2‘s complement of 0 will be as follows:

  1111

    1111

    +    1

10000

The result is 5 bit binary number.

Therefore, the value of x will be 0.

2)option 5