Question: I need to find the Assembly module to find minimum and average value in an array of float values. I have the max ( which
I need to find the Assembly module to find minimum and average value in an array of float values.
I have the maxwhich is below.but i need the min, i think it should be similar to max, just need to change a few things, but i couldnt figure out. and also for average, i need to put something for line and so it work. here is my test code: #include
using namespace std;
extern C
float floatAveragefloat int;;
float floatMaxfloat int;;
float floatMinfloat int;;
int main
declare an array of floats to pass into assembly functions
const int SIZE ;
float floatArrSIZE;
display the array content
printfThe array contains the float numbers: ;
for int i ; i SIZE; i
printff floatArri;
call the assembly function to compute average
float avg floatAveragefloatArr SIZE;
printf
The average of the floats are: f
avg;
call assembly function to commpute maximum
float max floatMaxfloatArr SIZE;
printfThe largest float is: f
max;
call assembly function to compute minimum
float min floatMinfloatArr SIZE;
printfThe smallest float is: f
min;
return ;
thank you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
