CSE340: Computer Architecture
Spring 2020, Assignment-2
Name:_____________________________ ID:______________ Section____
1. Encode the following MIPS instructions and identify their types?
a. MULT $8,$9
b. SLT $10, $5, $6
c. ADDI $10, $11, -5
2. Let’s assume $PC 0x1444000 for bne $10,$11,100. Calculate the branch target address using the given data. Show all
your calculation steps.
3. The following problems deal with translating from C to MIPS. Assume that the base address for arrays f, g and
A are assigned to registers $s0 and $s1, $s6 respectively.
a. f[5]= g[2]+f[A[7]];
b. g[A[f[5]]] = g[5]-A[3]*f[2];
4. Multiply -0.123 * 1.57 in Binary.