Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an MC68000 assembly language program that computes the average of fifteen data bytes in memory (use EASY68k software) The program should expect to find

Write an MC68000 assembly language program that computes the average of fifteen data bytes in memory (use EASY68k software)

The program should expect to find the data bytes stored at memory locations $600 thru $60E.

All values are positive and their sum may require more than 8 bits

The program should store the result as follows:

Integer part of average at Byte $760

Fractional part (the remainder after division) at Byte $761

Use ORG directives to set the location counter to the proper place,

Use DS.B directives to define names for the data bytes, and Specify the data address by name in the instructions.

Example:

ORG $600

DATA1 DS.B 1

DATA2 DS.B 1

ORG $800

MOVE.B DATA1, D0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions