Question: Lab 1 Write a YASM Assembly language program to solve the following problem 1. Declare a variable (i.e. Label) representing a temperature value in degrees
Lab 1 Write a YASM Assembly language program to solve the following problem 1. Declare a variable (i.e. Label) representing a temperature value in degrees FAHRENHEIT. Set the value of this variable to 100 (Use INTEGER data values only Declare a second variable (i.e. Label) representing a temperature value in degrees CELSiUs. Set the Initial value for this variable to o CONVERT the FAHRENHEIT variable's degrees value into the EQUIVALENT degrees CELSIUS temperature. Use the following conversion formula: C(F-32) 5/9 (Remember to follow the proper arithmetic order of precedence rules for the arithmetic operators when evaluating the formula's expression in YASM mnemonic operat code syntax). 3. Display the ORIGINAL FAHRENHEIT temperature value and the CONVERTED CELSIU temperature value as shown below using the C' printf) function to format the output string. 3. Fahrenheit TO Celsius Conversion nnn degrees F-nnn degrees C By:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
