Assume that the variables f g h i j are assigned to


Assume that the variables f, g, h, i, j are assigned to registers $s0 through $s4. Assume that the base address of the A and B are in the registers $s6 and $s7. What would the MIPS assembly code be for the following C statements?

Please use $t0 register as a temporary register especially in load and stores a) f = - g - A[6] b) B[12] = A[i-j] c) f = -g +h +B[5] d) B[10] = A[i] + A[j] e) f = g - A[B[8]] f) f = A[B[g]+1].

HINT - Use all instruction - Example in Week 2 presentation that will help! Using 16 binary bits -- What would the following decimal numbers be in hex using the 2's complement format? PLEASE PUT YOUR ANSWER IN HEX! +254 -253 +122 -121.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Assume that the variables f g h i j are assigned to
Reference No:- TGS01715538

Expected delivery within 24 Hours