Question: You are working on a microprocessor-based digital signal processing system which must process a large (213 bytes) data array of bytes in memory called IQDATA,

 You are working on a microprocessor-based digital signal processing system which

You are working on a microprocessor-based digital signal processing system which must process a large (213 bytes) data array of bytes in memory called IQDATA, and write results to another array (of half-words) in memory called REALDATA. Processing the data involves reading two bytes from IQDATA and then adding them together. If the sum is positive, it is written to REALDATA as a half-word, otherwise a value of 0 is written to REALDATA. This process is repeated until all IQDATA has been processed. The program keeps track of the total number of times the sum was negative To process the arrays, the mainline passes pointers to the two arrays and the length of the array to a procedure called IQCALC which processes the input array and returns the total number of negative sums back to the mainline, which the mainline stores at a memory location called RESULT Task 1 Using the Standard Program Structures shown in chapter 3, write the ALGORITHM for the MAINLINE (no code) section of the program. Include the steps required to pass the required parameters to the procedure, call the procedure, and store the returned value. Assume the stack and R13 have already been initialized and that registers will be saved in the procedure as needed

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!