{br} STUCK with your assignment? {br} When is it due? {br} Get FREE assistance. Page Title: {title}{br} Page URL: {url}
UK: +44 748 007-0908, USA: +1 917 810-5386 [email protected]

Assembly Language
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:

  1. Explain how your code works, paying particular attention to the sorting method (25%)
  2. Provide a commented code listing (25%)
  3. 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)

Sample Solution

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?