CL-SPIM Version 5.5 of August 12, 1994 Copyright 1990-1994 by James R. Larus (larus@cs.wisc.edu). Copyright (C) 1991-1994 by Anne Rogers (amr@cs.princeton.edu) and Scott Rosenberg (scottr@cs.princeton.edu). All Rights Reserved. See the file README a full copyright notice. Loaded: /home/l/i/lib51/lib/trap.handler (cl-spim) load "sum_test.asm" (cl-spim) load "sum.asm" (cl-spim) run Input two numbers on separate lines 2 5 The sum of all integers from the first number to the second number is 14 (cl-spim) run Input two numbers on separate lines 8 2 The sum of all integers from the first number to the second number is 0 (cl-spim) run Input two numbers on separate lines -3 -1 The sum of all integers from the first number to the second number is -6 (cl-spim) # (cl-spim) reinitialize Loaded: /home/l/i/lib51/lib/trap.handler CL-SPIM Version 5.5 of August 12, 1994 Copyright 1990-1994 by James R. Larus (larus@cs.wisc.edu). Copyright (C) 1991-1994 by Anne Rogers (amr@cs.princeton.edu) and Scott Rosenberg (scottr@cs.princeton.edu). All Rights Reserved. See the file README a full copyright notice. (cl-spim) load "sum_square_test.asm" (cl-spim) load "sum.asm" (cl-spim) run Input three numbers on separate lines 2 5 1 The sum of squares of all integers from the first number to the second number stepping by the third number is 54 (cl-spim) run Input three numbers on separate lines 8 2 1 The sum of squares of all integers from the first number to the second number stepping by the third number is 0 (cl-spim) run Input three numbers on separate lines -3 3 2 The sum of squares of all integers from the first number to the second number stepping by the third number is 20 (cl-spim) # (cl-spim) reinitialize Loaded: /home/l/i/lib51/lib/trap.handler CL-SPIM Version 5.5 of August 12, 1994 Copyright 1990-1994 by James R. Larus (larus@cs.wisc.edu). Copyright (C) 1991-1994 by Anne Rogers (amr@cs.princeton.edu) and Scott Rosenberg (scottr@cs.princeton.edu). All Rights Reserved. See the file README a full copyright notice. (cl-spim) load "sum_random_test.asm" (cl-spim) load "sum.asm" (cl-spim) run Input one number on a separate line 100 The sum of the given number of random bits is 55 (cl-spim) run Input one number on a separate line 1000 The sum of the given number of random bits is 510 (cl-spim) run Input one number on a separate line 1000 The sum of the given number of random bits is 515 (cl-spim)