Question: Objective Create a LC-3 program that will perform addition (or potentially more operations) on numbers with 4 digits or less Problem Statement We are now

 Objective Create a LC-3 program that will perform addition (or potentially

more operations) on numbers with 4 digits or less Problem Statement We

Objective Create a LC-3 program that will perform addition (or potentially more operations) on numbers with 4 digits or less Problem Statement We are now familiar with the LC-3 simulator and can debug and develop asm code. For this assignment, you are to develop a LC-3 assembly program to perform math operations and display the result on the screen. A skeleton code is NOT provided to you. You are to develop your own program to accomplish this task. Feel free to refer to previous labs for ideas. The requirement for the lab is to ask the user to enter two numbers of up to four di in length and display their sum. The expected program output is shown below Please enter SRC1: 1234 Please enter SRC2: 4321 The sum is: 5555 Two references you might find useful for this lab are the ASCII table and the LC-3 instructions guide (on Blackboard) Bonus You can gather more points by adding extra operations and building a calculator. Each additional operation is worth extra 15 points Multiplication (Extra 15 points) You can modify your code to offer multiplication as an option. Recall that we discussed how we can multiply numbers by adding them repeatedly. You are only responsible for results with up to 4 digits. Subtraction (Extra 15 points) Modify your code to allow subtraction of two 4-digit numbers. You should allow for negative results as well. Division (Extra 15 points) Modify your code to allow for division. Recall that we can divide numbers by repeated subtraction or by using bit-shifting

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!