You are on page 1of 1

Write an MC68000 program that will examine a list of test scores stored in memory.

Transfer any passing score (greater than or equal to 60) to a table in memory, and
transfer any failing score to another table in memory. Also, keep a count of the
number of scores in each table. * Assume that twenty scores are stored in memory
words starting at location $5000. Define this table of words, and assign a label to
it using the DS.W assembler directive. (How do you force its location to $5000?) *
Store all passing scores in memory words starting at location $5100, and store all
failing scores starting at location $5200. Define these tables using DS.W assembler
directives. * Store the final count for the number of passing scores in register D2
and the number of failing scores in register D3. * Start your program at location
$800. * Include all necessary global and local comments. * Use numbers to represent
addresses only in ORG directives; for other instructions, use labels. * Clear your
tables of passing and failing scores using program instructions at the start of
your program, to prepare for repeat runs. * Do not leave any blank words between
scores in either table. *Try your program several times, with different data

You might also like