Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 procedureStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started