7. Bonus Problem (12 points). In the following problems, the data table contains MIPS
instructions. You will be asked to translate the entries into the bits of the opcode and determine
the MIPS instruction format.
a.
addi $t0, $t0, 1
b.
sw $t1, 32($t2)
7.1) For the instructions above, show the binary then hexadecimal representation of these
instructions. (6 points).
7.2) What type (I-type, R-type, J-type) instruction do the instructions above represent? (2
points).
7.3) What is the binary then hexadecimal representation of the opcode, Rs, and Rt fields in this
instruction? For R-type instructions, what is the hexadecimal representation of the Rd and
funct fields? For I-type instructions, what is the hexadecimal representation of the immediate
field? (4 points).