4. (3 pts. each) Write the hexadecimal representation of each MIPS assembly instruction: (4.1) sub $s3,…

4. (3 pts. each) Write the hexadecimal representation of each MIPS assembly instruction: (4.1) sub $s3, $t1, $s2 (4.2) bne $t3, $t4, 18 (4.3) sll $s0, $t5, 2 5. (20 pts.) Consider the following C (or java) code: else f=f+2; By storing the value of j in Ss0, write a sequence of MIPS assembly instructions that will execute these lines of code for the following two cases: (5.1) assuming that the values of f, g and h are stored in Ss2, Ss3 and $s4, respec- (5.2) assuming instead that the values of f, g and h are stored at memory locations tively. The value i is stored in Stl 0x00010CO4, 0x00010C08, 0x00010C0C, respectively, and the value i is stored in St1. Assume also that the hex value Ox00010C00 resides in register Ssl