Computer

Appendix A describes the MIPS simulator. which is helpful for these exercises.Although the simulator accepts pseudoinstructions, try not to use pseudoinstructionsfor any exercises that ask you to produce MIPS code. Your goal should be to learnthe real MIPS instruction set, and if you are asked to count instructions, yourcount should reflect the actual instructions that will be executed and not thepseudoinstructions.There are some cases where pseudoinstructions must be used (for example. thel a instruction when an actual value is not known at assembly time). In many cases.they are quite convenient and result in more readable code (for example. the l iand mov e instructions). If you choose to use pseudoinstructions for these reasons.please add a sentence or two to your solution stating which pseudoinstructions youhave used and why.2.1 [5] (92.2) For the following C statement, what is the corresponding MIPSassembly code? Assume that the variables f . g . h . and i are given and could beconsidered 32-bit integers as declared in a C program. Use a minimal number ofMIPS assembly instructions.f = g + (h – 5)2.1 [5] For the following MIPS assembly instructions above, what is acorresponding C statement?add f . g . hadd f . 1 . f