Simple Caculator in Assembly Language

Job ID: 38945761

Budget: ₹1,500 – ₹12,500 INR

Your task is to write a program in assembly for the WASP processor. The program will work as a calculator. The user can input sums and the program will display the answer in decimals (base-10).
I suggest five stages of development.
*Very basic implementation* – The user can enter three characters. The first will be a digit from 0 to5. The second will be the “+” character. The third will be a digit from 0 to 4. Your program will addthe two digits together and display the result.
For example, if the user enters
3+4
The program will display:
7

*Basic implementation* – The user can enter three characters. The first will be a digit from 0 to 9. The second will be the “+” character or the “-“ character. The third will be a digit from 0 to 9. If the middle character is “+” the program will add the two numbers and display the result. If the middle character is “-“ the program will subtract the second number from the first and display the result. (It doesn’t have to work correctly for negative answers.)
For example, if the user enters
3+4
The program will display:
7 or 07
If the user enters
7-2
The program will display:
5 or 05
If the user enters
9+7
The program will display:
16

*Good implementation* – The user can enter five characters. The first two will be a number from 00 to 99. The third will be the “+” character or the “-“ character. The last two characters will be a
number from 00 to 99. If the middle character is “+” the program will add the two numbers and display the result. If the middle character is “-“ the program will subtract the second number from the first and display the result. (It doesn’t have to work correctly for negative answers or for answers greater than 99.)
For example, if the user enters
30+41
The program will display:
71
If the user enters
77-22
The program will display:
55

*Full implementation* – The user can enter five characters. The first two will be a number from 00 to 99. The third will be the “+” character or the “-“ character. The last two characters will be a number from 00 to 99. If the middle character is “+” the program will add the two numbers and display the result. If the middle character is “-“ the program will subtract the second number from the first and
display the result. (It does not have to work correctly for negative answers.) The program will repeat in a loop, so the user can keep entering new sums without having to re-start the program. If the user
makes an incorrect input, the program will display an error message.
For example, if the user enters
80+41
The program will display:
121
If the user enters
x5+12
The program will display:
error

Advanced implementation
For marks above 40 out of 50, you should impress us. There are many ways to impress, and you don’t need to do all of them:
• Get the program to display negative answers correctly.
o For example: 22-77 = -55
• Get the program to handle numbers of any length from 0 to 65525.
o For example: 22+1132 = 1154
• Get the program to handle negative input values.
o For example: -2+7 = 5
• Add prompts to tell the user what to type.
• Make the program end if the user types xx as input.
• Support other mathematical operations, such as * and /.
You may think of your own ways to make the program more complex or useful. That’s great.
Related categories: Assembly x86/x64 Assembler