.
     CSE 109    HW 4   Due 9 PM  Sunday  19 October 2008

     This homework is an exercise in writing STKMASM and STKMASM++ programs
     and is meant to have you become familiar with stkmasm and stkmasm++.

     Write two STKMASM programs.  The first should read in a list of non-
     zero integers, the list being of any length, write out each number, and
     write out the sum of the of the positive numbers and the sum of the
     cubes of the negative numbers. The second should read in 5 ints and
     for each write out 1 if it is divisible by 2 and write out 0 otherwise.
     A 0 should serve as a sentinel for the first list.  Use stkmasm (stored
     in /proj/csc109/bin/stkmasm) to make sure your program works properly.
     The first STKMASM program should use the following data: 4 -4 6 5 -3 -4
     0. The second STKMASM program should use the following data:  -3 4 8
     3 -12. Of course your programs should work for other sets of data.

     Repeat the above, except use STKMASM++ syntax and use stkmasm++ to run
     the resulting programs.

     To submit your homework, create a subdirectory of cse109.084 called
     hw4 (that is, from your root directory /cse109.084/hw4).  In hw4 store
     four files, the first called hw4.prog1 and containing your first
     STKMASM program, the second called hw4.prog2 and containing your
     second STKMASM program, the third called hw4.prog3 and containing your
     first STKMASM++ program, and the fourth called hw4.prog4 and containing
     your second STKMASM++ program.  The subdirectory hw4 should only contain
     the above four files.

     NOTE THAT THE PROGRAMS IN hw4.prog1 and hw4.prog2 WILL RUN IN EITHER
     STKMASM OR STKMASM++.  THE PROGRAMS IN hw4.prog3 AND hw4.prog4 SHOULD
     TAKE ADVANTAGE OF STKMASM++ SYNTAX AND NOT BE ABLE TO RUN IN STKMASM.
     CREATING THE FILES  hw4.prog3 AND hw4.prog4 CAN BE DONE IN A FEW MINUTES.
     JUST COPY THE CONTENTS OF hw4.prog1 INTO hw4.prog3, AND THE CONTENTS OF
     hw4.prog2 INTO hw4.prog4.  THEN EDIT THE RESULTING PROGRAMS, TAKING
     ADVANTAGE OF STKMASM++ SYNTAX. THE WHOLE  OPERATION SHOULD TAKE A FEW
     MINUTES.

     NOTE: This homework (and all homeworks will only be collected once
     (unlike programming assignments, for which there will be multiple
     opportunities to submit your solution).

