No pseudoinstructions!!! 3· implement the following using MIPs instructions. Do
ID: 3876151 • Letter: N
Question
No pseudoinstructions!!! 3· implement the following using MIPs instructions. Do not use any pseudoinstructions for this problem. Branch to a label "stage2" if Sto is greater than or equal to $t1. Implement the following using MIPs instructions. Do not use any pseudoinstructions for this problem. If $s1 is less than $s2, set $t5 to 4, otherwise set St5 to 5 5. Implement the following using MIPs instructions. Do not use any pseudoinstructions for this problem. While $t4 is less than 7, increment $t4 by 1 (set $t4 to O before the loop starts)Explanation / Answer
3)
MIPS instruction:-
bge $t0,$t1,stage2
4)
MIPS isntructions:-
bge $s1,$s2,NEXT_STEP
li $t5,4
b Exit
NEXT_STEP:
li $t5,5
Exit:
5)
MIPS instructions:-
li $t4,0
li $t5,7
LOOP:
bgt $t4,$t5,EXIT
addi $t4,$t4,1
b LOOP
EXIT:
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.