Question: 4 (30 points) Given the delay assembly routine below, assume a branch takes one cock it the branch is not taken and 3 clocks if

 4 (30 points) Given the delay assembly routine below, assume a

4 (30 points) Given the delay assembly routine below, assume a branch takes one cock it the branch is not taken and 3 clocks if the branch is taken. How many does this subroutine take when: clocks l 4 a) R0 = 0, and R1 = 0? b) When RO 10 and R1-0 c) When Ro 10 and R1-23 14 CMP R1, #0 BEQ next MOV R2,R1 SUB R2,#1 CMP R2, #0 BNE fine CMP R1, #0 BEQ done SUB R0, #1 B delay delay fine next done BX LR

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!