EE 3755 Final: EE 3755 LSU 2001fFinal Exam sol
Document Summary
Problem 5 (20 pts) (17 pts) (20 pts) (17 pts) (26 pts) Problem 1: the bcloop instruction is a combination subtract-by-one and branch-if-not-zero instruction. It works as follows: if the register operand ( in the example below) is zero the branch is not taken and the register operand is not changed. If the register operand is non-zero it is decremented and the branch is taken. The target of bcloop (the place it branches to) is computed the same way as existing branch instructions and like other branches it has a delay slot. Modify the rst mips implementation in the appendix so that it can execute the bcloop instruction. (20 pts) Make up any eld values that are needed. All arithmetic must be done by the alu. # loop iterates 4 times. lw , 0() addi , , 4 bcloop , loop add , , .