Question: Question 3 The Cortex MO + Thumb assembly subroutine below, named Exp, is used to compute the expression A B ( A power of B

Question 3
The Cortex MO+ Thumb assembly subroutine below, named Exp, is used to compute the expression AB( A power of B) where A and B are two integer values which are allocated to registers rO and r1 respectively and the result is stored in register r2.
Note; As a reminder, all Cortex Mo+ instructions take one clock cycle, except unconditionat Branch instructions and conditional branch instruction if they are TRUE which take two clock cycles
Questions:
1-[5 Marks] How many CPU clock cycles would it take for the subroutine to be executed to compute the expression 017?
show steps
Total number of clock cycles =q, Cycles
2-[5 Marks] Same question as above in order to compute the maximal value of )=(2, without causing an overflow.
show steps
Note: First, you need to find the value of A, before determining the number of clock cycles.
Total number of clock cycles =q, Cycles
 Question 3 The Cortex MO+ Thumb assembly subroutine below, named Exp,

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!