Write a program in 8085 assembly language that would read two single digit inputs (each between 0 and 5) and print their sum to the screen.
The program should first provide the user with some instructions. It should then ask for the first input, read it, go to the next line and request and read the second input.
The program should print the sum obtained on the next line and then terminate with a good bye message.
If the input is anything but a digit, the program should beep, wipe out the wrong character and wait for a valid input.
A typical session may look like this:
First number: _
Note where the cursor is waiting for the user input. After the user types in 4, the screen will become:
Just as a test, user types in the letter w, the computer beeps but the screen looks exactly the same. Now user types in a 3 and the screen becomes:
I hope you are pleased with my answer. Have a good day!
Name the program prog1. Submit files prog1.asm and prog1.hex (produced by a80) on a diskette. Also submit prog1.asm in printed form. Your program should clearly identify you (and your section) in the program header.
The programs will be graded for efficiency (compactness of the code and speed of execution), correct programming style, proper labels, good comments and pleasing interaction with the user (user interface). Please use your own imagination while designing the screen layout and messages. See the three example programs (example1.asm - example3.asm) to learn the correct programming style.