Consider a proposed new instruction named rpt. This instruction combines a loops condition check and counter decrement

Question:

Consider a proposed new instruction named rpt. This instruction combines a loop’s condition check and counter decrement into a single instruction. For example, rpt $s0, loop would do the following:

if (x29 > 0) {

x29 = x29 − 1;

goto loop }

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?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: