Examples/Handouts
example1.a - simplest little assembly program.
handout2.a - some basic math in assembly.
example3.a - arrays in SPIM (What? Already??).
example4.a - branches/jumps, version 1.
example5.a - branches/jumps, version 2.
example6.a - using branch as a loop.
example7.a - branching with inequality.
example8.a - using left and right shifts.
hw2_33.a - solution idea for homework problem 2.33
example9.a - arithmetic with floating point values.
example10.a - program with single procedure (function).
example11.cc - sample C++ program showing common use of two functions.
example11.a - SPIM version of above C++ program. Pay close attention to how
all the local frame information is stored.
|