CSC103 How Computers Work
Lab 3a: Introduction to PIPPIN


I: Using Literal Values (number values, a.k.a. immediate addressing mode)

For the first part of the lab, you will put a simple expression into the PIPPIN Simulator , and observe what happens. You should run it a couple of times, because quite a lot of new things are happening!

  1. Open the PIPPIN CPU Simulator
  2. Enter the following instructions in the upper right area of the simulator
  3. Note that this is the assembly code representation of Y = 2 + 3
  4. Click on the play button, along the bottom.
  5. Things to observe while this is running

II: Using Memory Locations ('Variables')

This time, you will develop the assembly code on your own, and enter it into the simulator. Watch the final result (you decide where this will go) to make sure the intended calculation is performed.
  1. Enter assembly code for the expression Y = W + X
  2. You can use any integer values you want for W and X
  3. Be sure to enter the values you have selected into the W and X storage locations before beginning the simulation.
  4. Watch the simulation proceed