Question: (f) WHILE-DU. (g) REPEAT-UNT'IL. 8. Introduction A precision Load Cell Module in a factory scale creates a 16-bit binary integer value proportional to the weight

 (f) WHILE-DU. (g) REPEAT-UNT'IL. 8. Introduction A precision Load Cell Modulein a factory scale creates a 16-bit binary integer value proportional to

(f) WHILE-DU. (g) REPEAT-UNT'IL. 8. Introduction A precision Load Cell Module in a factory scale creates a 16-bit binary integer value proportional to the weight of althe product produced in an hour. The processor reads in a value from the scale every hour for 8 hours and puts these 8 values in an array called WTRF. You need to describe and write a simple program that calculates the rounded average of the 8 values and writes the average in a memory location called DayAv 8a. Show the assembly language you would use to declare the WTRF array and initialize it with 8 sample values. Also, show how you would declare the appropriate memory space for the 16-bit DayAv result and give it an initial value of zero 8b. Using only the STANDARD PROGRAM STRUCTURES shown in text Figure 3-15, write the ALGORITHM/task list for a simple program that calculates the rounded average of the 8 values and puts the result in the memory location you have created for the average. As always, simply think of the initializations and the steps you would take, if you were doing it with pencil and paper. 8c. Show the assembly language instructions you would use to initialize pointers to the WTRF array and the DayAv variable. (f) WHILE-DU. (g) REPEAT-UNT'IL. 8. Introduction A precision Load Cell Module in a factory scale creates a 16-bit binary integer value proportional to the weight of althe product produced in an hour. The processor reads in a value from the scale every hour for 8 hours and puts these 8 values in an array called WTRF. You need to describe and write a simple program that calculates the rounded average of the 8 values and writes the average in a memory location called DayAv 8a. Show the assembly language you would use to declare the WTRF array and initialize it with 8 sample values. Also, show how you would declare the appropriate memory space for the 16-bit DayAv result and give it an initial value of zero 8b. Using only the STANDARD PROGRAM STRUCTURES shown in text Figure 3-15, write the ALGORITHM/task list for a simple program that calculates the rounded average of the 8 values and puts the result in the memory location you have created for the average. As always, simply think of the initializations and the steps you would take, if you were doing it with pencil and paper. 8c. Show the assembly language instructions you would use to initialize pointers to the WTRF array and the DayAv variable

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 Accounting Questions!