Write an ARM assembly program to read and array of 50 elements and outputs the m
ID: 3911049 • Letter: W
Question
Write an ARM assembly program to read and array of 50 elements and outputs the moving average of the input array. The moving average of the input array is defined as the average of the past 4 elements at any point of time. For instance assume the input array is defined as:
arrayin DCD 9, 12, 29, 101, 3, ?3, ?128, ...
The moving average of the above array is as follows: avg_array DCD 2, 5, 13, 38, 36, 33, ?7, ...
2=(9+0+0+0)/4
5=(9+12+0+0)/4
13=(9+12+29+0)/4
38=(9+12+29+101)/4
36=(12+29+101+3)/4
33=(29+101+3+(?3))/4
...
Explanation / Answer
ARM assembly program to read and the moving average of the input array
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.