Question: Write a low-level algorithm and ARM assembly for a procedure that takes a pointer to an array of bytes as an argument in R1 and
- Write a low-level algorithm and ARM assembly for a procedure that takes a pointer to an array of bytes as an argument in R1 and the number of words in the array in R2. The procedure should then find the average of the array and return the approximate integer result to the calling procedure. The procedure should use the stack. Also, know that your architecture does not support a specific divide instruction. (Hint: you need to shift)
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
