Question: Convert the given high level language pseudocode into MIPS assembly. No need to turn it into a program. Just convert the code. Use proper indentation

Convert the given high level language pseudocode into MIPS assembly. No need to turn it into a program. Just convert the code.

Use proper indentation for code blocks within conditional statements and loops

Comment each assembly instruction to indicate the high-level language operation it is performing:

1) if/else logic exercise

if( $4 < 0x50 )

{

$1 = 0x1238;

$2 = 0x3285;

}

else if( $4 != $3 )

$3 = $4

else

$2 = $4 - $3

2) While loop exercise

$4 = 0

$2 = 1

while($4 != 4)

$4 = $4 + $2;

3)For loop exercise

$1 = 10

$3 = 1

for($2 = 12; $2 > $3; $2 -= 1)

$1 += 1;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!