Question: Delay Loop: Write a subroutine in assembly language that will delay for 0 . 2 5 seconds. First you will need to calculate how many
Delay Loop:
Write a subroutine in assembly language that will delay for seconds.
First you will need to calculate how many instructions you will need to execute
to fill second. Use the posted DESoC User Manual on Canvas to find the
clock speed of the ARM CortexA processor. Note, this architecture uses a
stage pipeline, that allows for roughly one clock cycle before moving onto the
next instruction.
After you have this number, you will need to create a For loop, which will
contain a counter to simply count down to a specified number. That number will
be calculated by taking the number of instructions you need which you just
calculated divided by the number of instructions in your For loop.
You will turn in a single s file which contains a properly formatted function in
GNU assembly, that will loop so as to create a second delay. You must
include your calculations as comments in your s file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
