Course Solutions Uncategorized (Solved) : 1 Write Mips Assembly Code Execute Following C Statement Assume Following Registers Used R Q34188098 . . . .

(Solved) : 1 Write Mips Assembly Code Execute Following C Statement Assume Following Registers Used R Q34188098 . . . .

 

1.

(a) Write MIPS assembly code that will execute the following Cstatement. Assume that the following registers are used torepresent the variables. x in register $s5, y in register $t6, andz in register $t3

                    x= y – z + x – 10

(b) Replace the C code for    

                      a[5] = b[4] + a[3] – 3

by a set of equivalent MIPS instructions, using as fewinstructions as possible. Assume the staring addresses for arraysa and b are stored in registers $8 and $9,respectively

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post