Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Translate the following MIPS assembly into the binary code. add $t1, $t2, $t3 addi $t1, $s3, -9 lw $s2, 80($t1) sw $t1, 64($s1) Pls explain

Translate the following MIPS assembly into the binary code.

add $t1, $t2, $t3

addi $t1, $s3, -9

lw $s2, 80($t1)

sw $t1, 64($s1)

image text in transcribed

Pls explain step by step pls, try to understand the material! and will give thumb up promise! Thx!

op(31:26) =000000 (R-format), funct(5:0) \begin{tabular}{|l|l|l|l|l|l|l|l|l|} \hline 2053 & \multicolumn{1}{|c|}{0(000)} & 1(001) & 2(010) & 3(011) & 4(100) & 5(101) & 6(110) & 7(111) \\ \hline 0(000) & shiftleftlogica & & shiftrightlogica & sra & sllv & & srlv & Srav \\ \hline 1(001) & jump register & jalr & & & sysca 11 & break & & \\ \hline 2(010) & mfhi & mthi & mflo & mt 10 & & & & \\ \hline 3(011) & mult & multu & div & divu & & & & \\ \hline 4(100) & add & addu & subtract & subu & and & or & xor & not or (nor) \\ \hline 5(101) & & & set 1.t. & set1.t.unsigned & & & & \\ \hline 6(110) & & & & & & & & \\ \hline 7(111) & & & & & & & & \\ \hline \end{tabular} \begin{tabular}{|l|c|l} \multicolumn{1}{r|}{ 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$s0$s7 & 1623 & Saved \\ \hline$t8$tg & 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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions