Write a program in assembly language. This program convertstemperatures 32, 33, 34, …, 49, 50 Fahrenheit to Celsius anddisplays them on console. The exact formula for conversion is C=(F-32)*5/9. However with approximation use C= (F32)/2 and considerinteger result.
The following message will be displayed on console first: “Enter1 for converting to the Celsius, or 2 for exit. Depends on whichnumber you enter the program displays the next messages:
For input 1 it displays: the Celsius values for 32 through50.
For input 2 it displays: “Good Bye Your Name”
Solution
temperature.asm:
.data
string1: .asciiz “Enter 1 for converting to the Celsius, or 2 forexit: “
string2: .asciiz
OR
OR