Need to solve this Homework ... today!
We would like to create an 8086 assembly language program that sorts an array containing word numbers (double-bytes) as follows:
• The smallest value in the array should be placed in the last cell.
• The second smallest value in the array should be placed in the first cell.
• The third smallest value in the array should be placed in the before-last cell of the array.
• The fourth smallest value in the array should be placed in the second cell of the
array.
• The above procedure continues until the array is fully sorted.
Note that in the above-described sorting technique, the large values in the initial array will end up being placed at the middle part of the array.
In phase 1, consider that the array elements are hard-coded in the assembly file.
Once phase 1 is complete, you need to improve on the program by letting the user provide the array elements on the terminal once the program is run. In that case, consider that the character dot (.) ends the array elements entry