Question: Here is some partial code to get started: hanks Below, I give you some partial code for an assembly language program. This program will examine

 Here is some partial code to get started: hanks Below, I

Here is some partial code to get started:

hanksgive you some partial code for an assembly language program. This program

Below, I give you some partial code for an assembly language program. This program will examine an array of doublewords, of varying length, and will find the smallest number in the array. You should create and call a procedure called AvgOfN, which will walk through an array of N doublewords, find the average value, and return it in the EAX register. This procedure requires two arguments: the address of the beginning of the array, and the number of elements in the array. Your procedure should use the proper calling conventions and stack management, as shown in class. If the average value detected is positive, you should display the following box: The average value in the array is POSITIVE 854 OK If the average value is negative, display it as the following: The average value in the array is NEGATIVE -2 OK Try your code on two different numeric arrays, as I have shown below. Do NOT do any processing of the array in the MainProc. You may determine whether the average is positive or negative in the MainProc; however, all checking of the array elements themselves must be done in the AvgON procedure

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!