CS 273

Homework 4

Due Monday, October 15, 2001

Read 4.1, 4.2, 4.3, 4.4, and 4.5. I know that's a lot, but most of the this stuff will go pretty quickly and I am interested in you being familar with it.

Not From the Book (20 points)

Write a program to calculate the sum of the numbers from 1 to n, where n does not exceed 15. The value of n should be a constant in memory location $f800 before you start your program; the result should be in location $0010 after it has been calculated.

You may go ahead and hardcode a value for n choosing a number between 1 and 15. When we test the program, we may go ahead and use your number, or we may put in our own.

In your comments, indicate the basic structure of your code, but do not give verbose comments.

Assemble, simulate, and debug your program before submitting only the assemby language file (.asm) through the Web Submission page.


Last modified: Mon Oct 8 10:05:46 MDT 2001