EASY 68K ASSEMBLY CODE

profileazazan
310.p3.f14.doc

EASY 68K

Store the following 2-D array starting at location $1000 in row major.

25 24 19 23 28

20 11 7 9 10

15 9 5 6 17

18 13 4 14 22

26 21 16 12 27

Write an assembly language program to compute the following:USING EASY 68K

Row sums:

Row1 _______________

Row 2 _______________

Row 3 _______________

Row 4 _______________

Row 5 _______________

Column Sums

Col 1 _______________

Col 2 _______________

Col 3 _______________

Col 4 _______________

Col 5 ______________

Diagonal sums

Diag 1 _____________ (1,1), (2,2), (3,3) (4,4), (5,5)

Diag 2 _____________ (5,1), (4,2), (3,3), (2,4), (1,5)

Use subroutines.

The output should include the following:

Moh Alsanad

CIS310-001

Summary of the project

Echo the data

Row sums

Col sums

Diagonal sums

image4.jpg

image2

image1 image3.jpg