Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
\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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started