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!
- Open the PIPPIN CPU Simulator
- Enter the following instructions in the upper right area of the simulator
- Note that this is the assembly code representation of Y = 2 + 3
- Click on the play button, along the bottom.
- Things to observe while this is running
- Which box in the simulator keeps track of the instruction being executed?
- Where are the calculations performed?
- Where are intermediate results stored?
- Where is the final answer stored?
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.
- Enter assembly code for the expression Y = W + X
- You can use any integer values you want for W and X
- Be sure to enter the values you have selected into the W and X storage locations
before beginning the simulation.
- Watch the simulation proceed
- What extra steps are required for this calculation, than for the calculation
in Part I above?