Question: 2a- Assembly Program Write a program in LC-3 assembly language. This program converts temperature to Fahrenheit. Use single digit (0-9) for the temperature. The following
2a- Assembly Program Write a program in LC-3 assembly language. This program converts temperature to Fahrenheit. Use single digit (0-9) for the temperature. The following message will be displayed first: Enter 1 for converting to the Fahrenheit, or 2 for no conversion, or 3 for exit. Depends on which number you enter the program displays the next messages: For input 1 or 2 it displays: Enter the temperature in Celsius For input 3 it displays: Have a nice day After entering the temperature, the program saves the temperature according to the requested operations at the location x3100. This process continues in a loop until you enter 3 for the exit. Example: If the user types 1, and then 5, the program stores 41 in the memory location x3100, since 5*9/5+32=41 and then it displays Enter 1 for converting to the Fahrenheit, or 2 for no conversion, or 3 for exit. If the user enters 2, the program displays 5, and then it displays Enter 1 for converting to the Fahrenheit, or 2 for no conversion, or 3 for exit. If the user enters 3 the program exits and displays have a nice day.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
