Tom Kelliher, CS 220
Due Oct. 19, 2011
addn.s example program is a good
demonstration of what I expect.
In class, turn in hard copy of your MIPS source code and a sample run of each program. You can use the Linux script command to capture your sample run. The basic idea is:
bluebird:~/Class/Cs220/Examples % script Script started, file is typescript bluebird:~/Class/Cs220/Examples * spim SPIM Version 7.1 of January 2, 2005 Copyright 1990-2004 by James R. Larus (larus@cs.wisc.edu). All Rights Reserved. See the file README for a full copyright notice. Loaded: /usr/local/bin/exceptions.s (spim) load "addn.s" (spim) run How many inputs? 3 Next input: 5 Next input: 2 Next input: 8 The sum is 15 (spim) quit bluebird:~/Class/Cs220/Examples * exit Script done, file is typescript bluebird:~/Class/Cs220/Examples % enscript -P hs123ps typescript bluebird:~/Class/Cs220/Examples % rm typescriptThe typescript file that was printed with via the enscript command chronicles the terminal session from the time that the script command was executed until the script session was exited via the exit command.