Assignment 05
Contents:
Overview
Topic: Computer Architecture, Low-Level Programming
Related Reading: Ch. 5, Ch. 7
Due: 9am Tuesday, 30 July 2002
Internet Requirements
For this assignment, we will rely heavily on the PEP/7 software demonstrated in class. You will
need to have either a connection to the CC network, or you will have
to download a copy of the software to your own machine.
Practice Problems
Problems to be Submitted (20 points)
- (4 points)
Exercise 15 of Ch. 7 (p. 221).
- (4 points)
Exercise 17 of Ch. 7 (p. 221).
- (4 points)
Exercise 24 of Ch. 7 (p. 222).
To be fair to all, you need only do the first five characters of your first name.
(See program on page 209 of text as a similar example)
- (4 points)
Write the assembly-langauge program which inputs three values
(A, B, and C respectively), and outputs the value (A-B)-C.
(See program on pages 213-214 of text as a similar example)
- (4 points)
Write the assembly-langauge program which inputs three values
(A, B, and C respectively), and outputs the value A-(B-C).
For this problem, you are not allowed to use the ADD
instructions.
Overall, please type your answers to all of the problems in a
single document to be submitted electronically. Please see details about the
submission process.
Extra Credit (2 points)
We would like to have a program which has the following behavior. Two
input numbers should be read from the user. The larger of the two
should be printed as output.
Though it seems easy, accomplishing this task requires several
additional instructions of PEP7 which are not discussed in the text.
Working out a solution will be quite a feat on your part given this
admittedly brief lesson. But alas, it is extra credit...
ns121 Class Page
visprof@coloradocollege.edu