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

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: -where 'nnn' represents the digits in the values Make a SCREEN CAPTURE of the Terminal window output using the Snipping Tool. Paste the capture into the WordPad document. Use the WordPad->File->Print menu option to make a HARDCOPY of the output. 4. Next, declare ANOTHER pair of variables (i.e. Labels) for a new CELSIUS temperature value and a FAHRENHEIT value. (Use INTEGER data values only).Set the CELSIUS value to 30 and the FAHRENHEIT value to 0. CONVERT the CELSIUS variable's value into the EQUIVALENT degrees FAHRENHEIT temperature. Use the following conversion formula: F = ((9 /5)C) + 32 (Remember to follow the proper arithmetic order of precedence rules for the arithmetic operators when evaluating the formula's expression in YASM mnemonic operation code syntax). 5. Display the ORIGINAL CELSIUS temperature value and the CONVERTED FAHRENHEIT temperature value as shown below using theprintf] function to format the output string. 6. Celsius TO Fahrenheit Conversion nnn degrees C nnn degrees F By: -where 'nnn' represents the digits in the values Make a SCREEN CAPTURE of the Terminal window output using the Snipping Tool. Paste the capture into the WordPad document. Use the WordPad->File->Print menu option to make a HARDCOPY of the output. 4. Next, declare ANOTHER pair of variables (i.e. Labels) for a new CELSIUS temperature value and a FAHRENHEIT value. (Use INTEGER data values only).Set the CELSIUS value to 30 and the FAHRENHEIT value to 0. CONVERT the CELSIUS variable's value into the EQUIVALENT degrees FAHRENHEIT temperature. Use the following conversion formula: F = ((9 /5)C) + 32 (Remember to follow the proper arithmetic order of precedence rules for the arithmetic operators when evaluating the formula's expression in YASM mnemonic operation code syntax). 5. Display the ORIGINAL CELSIUS temperature value and the CONVERTED FAHRENHEIT temperature value as shown below using theprintf] function to format the output string. 6. Celsius TO Fahrenheit Conversion nnn degrees C nnn degrees F By:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!