Convert the following MIPS instructions into machine instructions in hexadecimal form. Show every
step in the conversion.
SLT $t1, $s1, $s2
SRL $s0, $s1, 4
ADDI $t5, $s3, -5
SW $t4, 200($s3)
2. Convert the following machine instructions into MIPS instructions.
014B482716
8E6C019016
3. Convert the following C program to MIPS program. Assuming that i, j, k, f, are stored in registers $s0,
$s1, $s2, $s3 already.
1) f = i + j -k;
2) f = i + (j - 8);
3) f = -i + (j + 3); (Hint: $zero)
4) f = i*4; (Hint: relationship between multiplication and shift)
5) f = i/2 +2;
6) f = i;
7) f = -i;
8) i++;