Given t00x55555555 and t10x12345678 what is the value of t2


You 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. 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.

2. 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

3. 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!!
Computer Engineering: Given t00x55555555 and t10x12345678 what is the value of t2
Reference No:- TGS02910923

Expected delivery within 24 Hours