Assignment 0

CS/ECE 354-2, Fall 1998

due Monday Sept. 14, before 5pm

Purpose

This assignment is intended to introduce the software tools used in this Pentium section of CS/ECE 354.

Program Statement

This assignment requires you to use the software tool Visual C++ to write and execute simple SASM programs. There are two SASM programs involved in this assignment. The first program (and its associated files) are provided for you. The second program is one that you write and turn in.

For the first program, follow the directions for Executing Your First SASM Program in programming advice. Do everything necessary to execute this program.

The second program you are to write. Write a SASM program that calculates and prints out the greatest common divisor of two positive integers. The two positive integers are to be declared in the .data section of the program.

A sample execution of the program might look like


The greatest common divisor of 12 and 16 is 4.


where the data section of the program contains declarations such as

int1  dd  12
int2  dd  16

Requirements

  1. Your program must contain adequate comments (documentation). Such comments include your name and section number at the top of the program. They also include a description of the program, as well as variable descriptions and comments about the code itself.
  2. Your program need not work for negative integers, since they will not be tested.

    Handing In the Assignment

    The procedure for turning in this first program has not yet been determined. Listen in class, and skim the cs354-2 home page on the web for directions on how to turn in this assignment.