Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please very important and please answer in the 1 hour thank you This week we shall design a calculator and try the out instruction using
please very important and please answer in the 1 hour thank you This week we shall design a calculator and try the "out" instruction using the LED display. The program should prompt the use to enter a number (maximum two digits) and then request for another number. Then prompt the user to enter the operation to be performed. The operation could be an addition or subtraction. Limit the operation to these operators. Once the operation is entered the program will perform the operation and display the result. Each number entered should be displayed on the LED display after it is entered. Then the result should also be displayed after the operation. The LED display can be activated by including a \#start=led_display.exe\# You will see a display like this one on the screen when you run your program. Instruction at the top of the program. The numbers may be transferred to the display using the AX or AL registers and the OUT 199 instruction. This means the display is placed at port 199. For example, Moyal,33out199,al will display "33" on the LED. If you use a hexadecimal value, then its decimal equivalent will be displayed. Example: Moyal,23Hout199,al will display "35" on the LED display. Optionally you may check the entered characters to make sure that they are numbers but leave this to the end and do it if you have time
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started