Machine Problem 2

22C:18, Fall 1996

Due Thursday Oct. 17, 1995, at 5:00 PM

Douglas W. Jones

Write a SMAL Hawk program based on problem 1 of Homework 4; this program should produce exactly the same output as MP1, except that it should use external linkage to the monitor DSPDEC routine to print successive numbers. Thus, you will have to use the link command and EXT directives to communicate with the DSPDEC routine, and you will have to use a stack and stack-based calling sequence to make the calls to DSPDEC.

The submit command (enabled by the source /group/22c018/setup command) should be used to submit mp2.a once it works. As with mp1.a, you may make multiple submissions, and only the last one before the deadline will be counted. (the others will automatically be discarded). Late submissions will be accepted if you provide a good reason; acts of God, government or employers are all compelling reasons!