Consider the following instructions
rpt $t2, Label1 # $t2 = $t2 – 1, if($t2 != 0) then PC = PC + 4 + SE(imm)
else PC = PC + 4
a) If we want to add this instruction to the MIPS machine instruction set, select the appropriate template and describe its details.
b) Now instead of adding this instruction, write the shortest piece of code in MIPS which is equivalent to the instruction above.
Comments
Leave a comment