CS 210 PROJECT 1 Due Date: Noon Tuesday 09/16/2003 The purpose of this initial project is to acquaint the student with the use of our Linux system and its program development tools needed for creating and executing application programs which are written in the GNU assembly language. PROJECT STATEMENT Use a Linux text-editor program (such as 'vi') to type the assembly language source-code for a program you have designed that will display a mathematical table showing both the square and the cube of each positive integer from 1 through 20. Your algorithm should NOT use any 'multiply' instructions, only additions (i.e., 'add' and 'inc' instructions). This is just an enhanced version of the 'demo2.s' program discussed in class, so your project-solution can be a 'modification' of that program's code. When you assemble, link, and execute your file, it should produce output that looks like this: Table of Squares and Cubes number square cube ------------------------------ 1 1 1 2 4 8 3 9 27 4 16 64 5 25 125 . . . . . . . . . 20 400 8000 ------------------------------ You can redirect your program's output to a file, so it can be printed. For example, if your executable file is named 'cubes', then you can use this command-syntax: $ ./cubes > cubes.out WHAT TO SUBMIT? Your project-submission consists of two parts: (1) computer files, and (2) paper printouts. Each part has two required pieces: source and output. Your computer files are submitted by copying them to a special directory (called a 'submit' directory) which only you, the Instructor, and the Teaching Assistant can access. Your printouts are submitted by putting them into the Instructor's mailbox (located in Harney 208). Be sure all parts of your project are submitted before the deadline! _______________________________________________________________________ (c) Allan B. Cruse University of San Francisco Fall 2003