MIPS does not provide any instruction for specifying a memory address with a variable offset from rs (i.e., allows only an immediate constant to be specified as the offset). Fill in the multiple- instruction sequence below to accomplish this type of memory access using available MIPS instructions.
Suppose the base array's base address (i.e., the location of its 0th member) is in register $t0, the word index is located in $t1, and the value in memory is being loaded into $t2.
Therefore, we effectively want to execute an instruction that would look like (but does not exist):
lw $t2, $t0(4*$t1)
Thus, the MIPS instruction set does not provide any such instruction.
Your task is to use a sequence of actual MIPS instructions to implement the similar behavior.