Homework1_3301.docx - Shayna Bergeron ID 2542111 CSCI 3301...

This preview shows page 1 out of 1 page.

Shayna BergeronID: 2542111CSCI 3301 Homework #11a) For the following C statement, what is the corresponding MIPS assembly code? Assume that the variables f, g, h, and i are given and could be considered 32-bit integers as declared in a C program. Use a minimal number of MIPS assembly instructions. f = g + (h – 5);
1b) For the following MIPS assembly instructions below, what will be the corresponding possible minimal Java/C statement? add f, g, h add f, i, f
2)Assume the following register contents: $t0 = 0xAAAAAAAA, $t1 = 0x12345678

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture