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 (8). 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 2. Be sure to
divide the length by 2 to obtain the middle value indexes (and not hard-code the indexes). There will
be a 25% penalty for hard-coding indexes.
Declare the values:
lst dd 4224,1116,1542,1240,1677,1635,2420,1820,1246,1333
dd 2315,1215,2726,1140,2565,2871,1614,2418,2513,1422
dd 1119,1215,1525,1712,1441,3622,1731,1729,1615,2724
dd 1217,1224,1580,1147,2324,1425,1816,1262,2718,1192
dd 1435,1235,2764,1615,1310,1765,1954,1967,1515,1556
dd 1342,7321,1556,2727,1227,1927,1382,1465,3955,1435
dd 1225,2419,2534,1345,2467,1615,1959,1335,2856,2553
dd 1035,1833,1464,1915,1810,1465,1554,1267,1615,1656
dd 2192,1825,1925,2312,1725,2517,1498,1677,1475,2034
dd 1223,1883,1173,1350,2415,1335,1125,1118,1713,3025
length dd 100
lstMin dd 0
lstEstMed dd 0
lstMax dd 0
lstSum dd 0
lstAve dd 0
oddCnt dd 0
oddSum dd 0
oddAve dd 0
eightCnt dd 0
eightSum dd 0
eightAve dd 0
You may declare additional variables if needed. All data is unsigned. As such, the DIV/MUL would
be used (not IDIV/IMUL). The JA/JAE/JB/JBE 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 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 Programming Questions!