Answered step by step
Verified Expert Solution
Link Copied!
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).image text in transcribed

(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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students explore these related Databases questions