Question: Write a simple assembly language program to find the minimum, estimated median value, maximum, sum, and integer average of a list of numbers. Additionally, the
Write a simple assembly language program to find
the minimum, estimated median value, maximum,
sum, and integer average of a list of numbers.
Additionally, the program should also find the sum,
count, and integer average for the odd numbers. The
program should also find the sum, count, and integer
average for the numbers that are evenly divisible by
eight The list is not sorted, we will estimate the median
value. Since the list length is even, the estimated
median will be computed by summing the two
middle values and then dividing by Be sure to
divide the length by to obtain the middle value indexes and not hardcode the indexes There will
be a penalty for hardcoding indexes.
Declare the values:
lst dd
dd
dd
dd
dd
dd
dd
dd
dd
dd
length dd
lstMin dd
lstEstMed dd
lstMax dd
lstSum dd
lstAve dd
oddCnt dd
oddSum dd
oddAve dd
eightCnt dd
eightSum dd
eightAve dd
You may declare additional variables if needed. All data is unsigned. As such, the DIVMUL would
be used not IDIVIMUL The JAJAEJBJBE must be used as they are for unsigned data
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
