Question: Write a LMC assembly program that finds the 2 nd smallest value out of three integer numbers. The three integer numbers will be provided by

Write a LMC assembly program that finds the 2nd smallest value out of three integer numbers. The three integer numbers will be provided by the user through keyboard and the 2nd smallest value is identified and then printed on the console screen. You are recommended to use max.asm as a starting point. You should use the online LMC simulator (http://peterhigginson.co.uk/LMC/ ) to test your program. (max.asm is provided for your reference).Write a LMC assembly program that finds the 2nd smallest value out

(2) (15 points) Write a LMC assembly program that finds the 2d suumallest value out of three integer numbers. The three integer numbers will be provided by the user through keyboard and the 2nd smallest value is identified and then printed on the console screen. You are recommended to use max.asm as a starting point. You should use the online LMC simulator (http:llpeterhigginson.co.ukLMC) to test your program. (max.asm is provided for your reference). The filename of your assembly program should be YourLastName_YourFirstName_HW2_p2.asm. Note that the grader should be able to load/assemble/run your assembly source code without any modification/debug successfully using the online LMC simulator. If your code cannot be assembled by the online LMC simulator by the grader, your program will get 0 point automatically. (For example, if you store your assembly program in MS word format or ODT, you will automatically get 0 point since we cannot load your program into the simulator.) Sample test cases 10 5-2 result 99 10 22 22 result 60 55-> result (2) (15 points) Write a LMC assembly program that finds the 2d suumallest value out of three integer numbers. The three integer numbers will be provided by the user through keyboard and the 2nd smallest value is identified and then printed on the console screen. You are recommended to use max.asm as a starting point. You should use the online LMC simulator (http:llpeterhigginson.co.ukLMC) to test your program. (max.asm is provided for your reference). The filename of your assembly program should be YourLastName_YourFirstName_HW2_p2.asm. Note that the grader should be able to load/assemble/run your assembly source code without any modification/debug successfully using the online LMC simulator. If your code cannot be assembled by the online LMC simulator by the grader, your program will get 0 point automatically. (For example, if you store your assembly program in MS word format or ODT, you will automatically get 0 point since we cannot load your program into the simulator.) Sample test cases 10 5-2 result 99 10 22 22 result 60 55-> result

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 Databases Questions!