Need some work done? Post a Project Today
Write an assembly code to calculate f = (g+h+i) +(g-i+j). You should get the value of g,h,i and j from console and save the result in f and print out its value in console. Assume $s0, $t0,$t1, $t2,$t3 are associated to f, g, h, i, j respectively. These are the only register you are allowed to use.
Sample Program Output: