Chapter 2: Q1E (page 164)
Question: 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.
Short Answer
addi f, h, -5
add f, f, g