Please dont use anything other than add, lw, sw instructions or any other common instruction
1. Write a MIPS program fragment for the following high-level language statement:
A [275] = g + A [275]; // Assume A is an int array with each element taking 4 bytes Assume that g is in register $t0, and the base address of A is in register $s1.
2. Write a MIPS program fragment for the following high-level language statement: a = b + 100;
Assume that a is in register $t0 and b is in register $t1.