Answered You can hire a professional tutor to get the answer.

QUESTION

convert high level language to MIPS if($5$4) while($5$3) $5++ else do $5-- while($5$4) This is what I got just want to see if it is right thanks!...

convert high level language to MIPS

if($5<$4)

while($5<$3)

$5++

else

do

$5--

while($5>$4)

This is what I got just want to see if it is right thanks!

addi $1,$0,1

slt $6,$5.$4

beq $6,$0,greaterThanFour

whileLoop slt $7,$5,$3

beq $7,$0,endLoop

add $5,$5,$1

j.while.Loop

endLoop:

j endIf:

greaterThanFour:

doWhile sub $5,$5,$1

slt $8,$4,$5

beq $8,0,endDowhile

j doWhile

endDowhile:

endif:

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question