Question: Need help with assembly language. Thank you. ; This program receives a single 8-bit HEX Fahrenheit Temperature through command line parameter ; and outputs the
Need help with assembly language. Thank you.
; This program receives a single 8-bit HEX Fahrenheit Temperature through command line parameter ; and outputs the Celsius approximation (in HEX) to the std_out ; ; use the following formula: Celsius = 5 * (Fahrenheit-32) / 9 ; NOTE1: the remainder will be discarded for Celsius conversion (only quotient is to be used) ; NOTE2: do not enter a Fahrenheit value less than 0x20 (32) since there is no valid input checking ; ; example output: ; Fahrenheit Temperature: 0x40 ; Celsius Temperature: 0x11 ; ; explanation: ; The Fahrenheit value entered is 0x40 which is 64 in decimal, therefore ; the Fahrenheit temperature value entered is 64 degrees. ; Using the above formula, the Celsius equivalent temperature is 17 degrees ; and 17 in HEX is 0x11
;compute the Celsius value where Celsius = 5 * (Fahrenheit-32) / 9
;print Celsius message, the Celsius value, and a new line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
