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

PLEASE WRITE YOUR CODE IN MIPS ASSEMBLY LANGUAGE WITH COMMENTS. PLEASE AND THANK

ID: 3889669 • Letter: P

Question

PLEASE WRITE YOUR CODE IN MIPS ASSEMBLY LANGUAGE WITH COMMENTS. PLEASE AND THANK YOU! rl hlowing questions,comsider information: An integer array A is stored in memory and its base address is stored in register $so (reg. ID 16) · .The variable g is mapped to register Ssi The variable h is mapped to register Ss2 .The variable i is mapped to register Ss3 The variable f is mapped to register Ss4 Write the MIPS assembly instruction to perform the following operations: 10. íf (g != h) //g not equal to h h=g else f= g + h

Explanation / Answer

10.

if(g != h)

h = g

else

f = g + h

-----------------------------------------------

Answer: MIPS Assembly code

bne $s1, $s2, True
lw $s2, $s1
j Exit
add $s4, $s1, $s2

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