Find the 2s complement representation in 32-bit hexadecimal


I have these questions for a homework assignment and have to show work. This works with MIPS coding language and is the class Introduction to Computer Architecture.

1. Find the 2's complement representation (in 32-bit hexadecimal) of the signed integer 52 (decimal).

2. Find the 2's complement representation (in 32-bit hexadecimal) of the signed integer -52 (decimal).

3. Convert 0Xfffffff3 (2's complement representation) into decimal.

4. Compile the following C code into MIPS code.

a). A[2]=g+A[1]-3, where g in $s1 and the base address of A in $s0.

b). for (i=0; i++; i<10) {A[i]=i}, where i in $s1 and the base address of A in $s0.

5. Given $t0=0x55555555 and $t1=0x12345678, what is the value of $t2 for the following sequence of instructions:

sll $t2, $t0, 4

or $t2, $t2, $t1

6. Given $t0=0xBEADFEED, what is the value of $t2 for the following sequence of instructions:

sll $t2, $t0, 4

andi $t2, $t2, -1

Request for Solution File

Ask an Expert for Answer!!
Engineering Mathematics: Find the 2s complement representation in 32-bit hexadecimal
Reference No:- TGS02910947

Expected delivery within 24 Hours