The following problems deal with translating from MIPS to C. Assume that the variables f, g, h,

Question:

The following problems deal with translating from MIPS to C. Assume that the variables f, g, h, i, and j are assigned to registers $s0, $s1, $s2, $s3, and $s4, respectively. Assume that the base address of the arrays A and B are in registers $s6 and $s7, respectively.b. sub $50, $50, $sl sub $50, $50, $s3 add $50, $50, $sl addi $t0, $56, 4 add $t1, $s6, $0 SW $tl, 0($t0) lw

For the MIPS assembly above, assume that the registers $s0, $s1, $s2, and $s3 contain the values 0x0000000a, 0x00000014, 0x0000001e, and 0x00000028, respectively. Also, assume that register $s6 contains the value 0x00000100, and that memory contains the following values:Address 0x00000100 0x00000104 0x00000108 Value 0x00000064 0x000000c8 0x0000012c

Find the value of $s0 at the end of the assembly code.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Organization And Design The Hardware Software Interface

ISBN: 9780123747501

4th Revised Edition

Authors: David A. Patterson, John L. Hennessy

Question Posted: