Question: 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

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!