3. Write a series of MIPS instructions that will read the first three values in an array A into $t2 through $t6. Assume
Posted: Tue Jul 12, 2022 8:28 am
3. Write a series of MIPS instructions that will read the first three values in an array A into $t2 through $t6. Assume that the A base register is in $s1. 4. The following problems deal with translating from C code to MIPS code or MIPS code to C code. Assume that the signed variables f, g, h and i are assigned to registers $s0, $s1, $s2, $s3 respectively. Assume the base address of the integer arrays A and B are in registers $s4 and $s5 respectively. Translate the following MIPS code to C code. Please indicate which elements of integer array A and B are modified by this code. addi $t0, $s1, 4 sll $t0, $t0, 2 addi $t1, $s4, 4 lw $s2, 0($t1) sw $t0, 8($s5)