Question: Implement a simple four function calculator in the LC3 assembly language that will run on the LC-3 simulator. You will use these subroutines to implement

 Implement a simple four function calculator in the LC3 assembly language

Implement a simple four function calculator in the LC3 assembly language that will run on the LC-3 simulator. You will use these subroutines to implement the calculator. The inputs to the calculator will not exceed 4 digits. This is to avoid overflow since the range of numbers handled by the 16-bit LC-3 is [-32768 32767]. The user interaction with the calculator is shown below LS-3 Calculator operation (+, -. ., /)? + Enter the first operand (SRC1): 34 Enter the second operand (SRC2) 27 Sum is: 61 Continue (Y, N)? Y Operation (+,, *, /)? Enter the first operand (SRC1): 378 Enter the second operand (SRC2) 237 Enter the Operator (+,* /): Difference is: 141 Continue(Y, N)? Y Operation (, , *, /)? - Enter the first operand (SRCl): 34 Enter the second operand (SRC2) 75 Implement a simple four function calculator in the LC3 assembly language that will run on the LC-3 simulator. You will use these subroutines to implement the calculator. The inputs to the calculator will not exceed 4 digits. This is to avoid overflow since the range of numbers handled by the 16-bit LC-3 is [-32768 32767]. The user interaction with the calculator is shown below LS-3 Calculator operation (+, -. ., /)? + Enter the first operand (SRC1): 34 Enter the second operand (SRC2) 27 Sum is: 61 Continue (Y, N)? Y Operation (+,, *, /)? Enter the first operand (SRC1): 378 Enter the second operand (SRC2) 237 Enter the Operator (+,* /): Difference is: 141 Continue(Y, N)? Y Operation (, , *, /)? - Enter the first operand (SRCl): 34 Enter the second operand (SRC2) 75

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!