Objectives
- Using indirect addressing
- Passing parameters on the stack
- Generating “random” numbers
- Working with arrays
Description: write a MASM program to perform the tasks shown below
- Get a user request in the range [min = 15 .. max = 200].
- Generate request random integers in the range [lo = 100 .. hi = 999], storing them in consecutive elements of an array.
- Display the list of integers before sorting, 10 numbers per line.
- Sort the list in descending order (i.e., largest first).
- Calculate and display the median value, rounded to the nearest integer.
- Display the sorted list, 10 numbers per line.