Question: The following instruction is not included in the MIPS instruction set: rpt $t2, loop # if(R[rs]>0) R[rs]=R[rs]1, PC=PC+4+BranchAddr 1. If this instruction were to be
The following instruction is not included in the MIPS instruction set:
rpt $t2, loop # if(R[rs]>0) R[rs]=R[rs]−1, PC=PC+4+BranchAddr
1. If this instruction were to be implemented in the MIPS instruction set, what is the most appropriate instruction format?
2. What is the shortest sequence of MIPS instructions that performs the same operation?
Step by Step Solution
3.39 Rating (171 Votes )
There are 3 Steps involved in it
1 itype ... View full answer
Get step-by-step solutions from verified subject matter experts
