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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Identify the differences between bar graphs and histograms

Answered: 1 week ago

Question

3. Contrast relational contexts in organizations

Answered: 1 week ago

Question

2. Describe ways in which organizational culture is communicated

Answered: 1 week ago

Question

1. Describe and compare approaches to managing an organization

Answered: 1 week ago