Question: Question 2: Write the Machine Code for the following MIPS Code. For each instruction write/type the following and upload them individually for each instruction (8

Question 2: Write the Machine Code for the following MIPS Code. For each instruction write/type the following and upload them individually for each instruction (8 submissions).

Instruction Format (0.5 points *8)

Binary Machine Code (1 point *8)

Hexadecimal Machine (1 point *8)

I1: ori $t8, $s4, -25

I2: subu $s2, $t8, $s7

I3: mult $s6, $s0

I4: mflo $t9

I5: sll $t6, $t9, 13

I6: lw $t4, -8($t6)

I7: addiu $t2, $t4, -15

I8: sw $t2, 8($t6)

Please use this below to solve it, also please explain how translate MIPS to Binary because I cannot understand it.

Question 2: Write the Machine Code for the following MIPS Code. For

\begin{tabular}{|l|c|l|} \hline Name & Register number & \multicolumn{1}{|c|}{ Usage } \\ \hline$ zero & 0 & The constant value 0 \\ \hline$v0$v1 & 23 & Values for results and expression evaluation \\ \hline$a0$a3 & 47 & Arguments \\ \hline$ t0-\$t7 & 815 & Temporaries \\ \hline$ \$0-\$s7 & 1623 & Saved \\ \hline$ t8-\$t9 & 2425 & More temporaries \\ \hline$gp & 28 & Global pointer \\ \hline$sp & 29 & Stack pointer \\ \hline$fp & 30 & Frame pointer \\ \hline$ra & 31 & Return address \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!