Assignments_02 - Dr Suk Jin Lee CPSC 5155 Fall 2016...

This preview shows page 1 - 2 out of 2 pages.

Dr. Suk Jin Lee CPSC 5155 Fall 2016 1 Assignments 02 Due on Friday (Sep/02) Name: _______________ 1. (20 points) For the following C statement, what is the corresponding MIPS assembly code? Assume that the variables f, g, h, i, and jare assigned to registers $s1, $s2, $s3, and $s4, respectively. Assume that the base address of the arrays and Bare in registers $s6and $s7, respectively. B[8] = A[i j]; 2. (20 points) For the MIPS assembly instructions below, what is the corresponding C statement? Assume that the variables f, g, h, i, and jare assigned to registers $s0, $s1, $s2, $s3, and $s4, respectively. Assume that the base address of the arrays Aand Bare in registers $s6and $s7, respectively. $s0, A

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture