New to assembly need help with temp converter - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

New to assembly need help with temp converter

Hello,

I just started taking my assembly language class for computer architecture and low level embedded systems. I am using code warrior to develop full chip simulations for the Dragon MCS912 board, here is my problem.

Write a program to convert the Fahrenheit temperature value stored in location labeled TdegF (use ORG $1100) to its Celsius equivalent. The range of temperatures is 32F to 350F. Store the converted temperature in location TdegC ($1110). Then modify to write a modular program as described above. All tasks are to be performed by subroutines (conversion from Fahrenheit to Celsius, rounding and conversion to ASCII). Main contains only calls to these routines. The Fahrenheit temperature value stored in location TdegF should be converted to Celsius, with rounding after division, and stored as ASCII hex digits in the 4 locations at hexString.

If somebody could help me figure out how to start this it would be a huge help. Thank you!
Sign In or Register to comment.