Question: For the project, you will implement a LC - 3 assembly program that implements the basic arithmetic operations, Add, and Subtract, and displays the results
For the project, you will implement a LC assembly program that implements the basic arithmetic operations, Add, and Subtract, and displays the results of these operations. The operands for these operations are single digit numbers. The result of addition should also be single digit.
When invoked the program will prompt for the two operands, perform the operations, display the results and exit, as shown by the following displays.
Each student will work on the project individually. Please do not seek help from others or use code that you may find on the Internet! If you have any questions, please get in touch with me
Display of Program Output on the Console
LC assembly programming
Program to implement the basic
Arithmetic operations
Enter the first operand:
Enter the second operand:
Addition result
Subtraction result
Exiting.
Extra Credit points
Display Minus sign if result is negative.
LC assembly programming
Program to implement the basic
Arithmetic operations
Enter the first operand:
Enter the second operand:
Addition result
Subtraction result
Exiting
What to submit on Brightspace:
The assembly code asm file
A screen shot of the console output for each test case.
Post these deliverables on Brightspace.
The program will be graded on:
Program executes and produces correct results.
Display format as shown
Follows standards Use of Registers R R and R
R for input and output.
Operand in R and Operand in R
Appropriate documentation
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
