Write a program in Little Man Computer Assembly Language to do the following:
Input up to nine numbers between 1 and 127 and store them in memory
After the ninth number is input, sort the saved numbers in ascending order and display them on the screen. Then exit the program
If, at any stage, the number 0 is input then your program must sort all the previous input numbers in ascending order and display them on the screen. Then exit the program.
You must the simulate your program using the simulator at https://peterhigginson.co.uk/LMC/ or any other suitable LMC simulation site.
In your submission you must provide the following:
- Explain how your code works, paying particular attention to the sorting method (25%)
- Provide a commented code listing (25%)
- Provide screenshots of the output
a. when nine numbers are entered
b. when less than nine numbers are entered followed by a zero
(Note numbers must not be entered in ascending order for the tests)