Question: Assumptions can be made Write an AAPCS compliant ARM assembly routine to compute the amplitude - scaled moving average for an array of data, using

Assumptions can be made Write an AAPCS compliant ARM assembly routine to compute the amplitude-scaled moving average for an array of data, using the following equation y(n)= Pkx(n-k) x 8 k=0346-)** These specifications also apply: You need to implement both the caller (i.e. the main program) and the callee (i.e. the function named as "moving_avg" that does the above computation). The input array x(n) and the empty output array y(n) each having 512 elements are stored in memory with base addresses 0x4000A000 and 0x4000B000, respectively. Both are 32-bit integer arrays. The filter coefficients Po P1, P2, P3 are available in registers V1, V2, V3, V4, respectively within the main program. The main program (caller) should pass arguments to the function "moving_avg" (callee) in the following order. Argument 1: Pointer (i.e. the base address) to the input array x(n) Argument 2: Pointer (i.e. the base address) to the output array y(n) Argument 3-6: Coefficients Po-P3 The function moving_avg0 should implement t

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!