Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

If somone can help me asap i\'ll really apprecitate it CPSC 2105 x jin Lee pts)

ID: 3600369 • Letter: I

Question

If somone can help me asap i'll really apprecitate it

CPSC 2105 x jin Lee pts) Convert the following ClJava code into MIPS assembly code Fall 2017 25 pts s. (25 f, g, h, i, and j are assigned to the registers $so, $s1, $s2, $s3, and $84, respectively 4. (25 pts) Convert the following MIPS assembly code into machine language. Write the instructions in hexadecimal. MIPS assembly code Field Values rd shamt funct rt 17 17 6 bits 5 bits 5 bits 5 bits 5 bits op rs 0 sll $to, Ss1, 2 srl $s2, $s1, 2 18 2 6 bits

Explanation / Answer

Answer:-

3) We can use register $t0 to store the addition of f($s1) and g($s2) and $t1 to store addition of h($s3) and i($s4). Now we can subtract the contents of $t1 from $t0 and store the result in f($s0). The below 3 statements would be equivalent to f=(g+h)-(i+j);

add $t0, $s1, $s2

add $t1, $s3, $s4

sub $s0, $t0, $t1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote