Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribedimage text in transcribed

(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

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

The Auditor An Instructional Novella

Authors: James K. Loebbecke

1st Edition

0130799769, 978-0130799760

More Books

Students also viewed these Accounting questions