Question: Given an array of 365 daily temperatures in Celsius scale as an array stored at memory location Celsius. Write an MC68000 assembly program that converts

Given an array of 365 daily temperatures in Celsius scale as an array stored at memory location Celsius. Write an MC68000 assembly program that converts every Celsius temperature into the Fahrenheit scale (use Tf= (9 * T_c)/5 + 32) displays the corresponding ASCII characters of Tf on an external device (e.g., screen) stores the converted temperatures in an array Fahrenheit computes the annual average Fahrenheit temperature and stores it under Average Assume all Fahrenheit temperatures are positive 2 decimal digits. Use an ASCII characters table to convert decimal digits into characters to be displayed. To compile, debug and simulate (test) your MC68000 programs you may use the asm68k assembler software (downloadable, e.g., at http://aminet.net/packagc/dcv/asm/Asm68k') or the Easy68k simulator (www.easv68k.com') Some useful instructions: To stop an MC68000 program execution use: move #228, d7 trap#14 To write (display) a character stored in DO, use: move #248, d7 trap #14 char in D0.B is displayed on screen To read a character from an input device into DO, use: move #247, d7 trap#14; char is read into D0.B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
