Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+ Are some laws more important than others? If so, which ones?

Answered: 1 week ago

Question

=+j Describe how EU directives impact IHRM.

Answered: 1 week ago