Homework 2
EECE 417
Purpose
This assignment is intended to introduce the software tools used in this
Pentium section of EECE 417.
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
the guide to writing SASM programs found on the
textbook web-site. The program p0.asm is found in the textbook
on page 40. 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
-
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.
-
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 course page on the web for directions on
how to turn in this assignment.