Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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).
(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-> resultStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started