CS 10, Fall 1997
Lab10: Assembly Language
Assignment for the Next Lab
- Read pages 205-210
- Reread module 4 (pp. 116-165). Tuesday's discussion will give you a
chance to ask questions about anything you don't understand in module 4 in
preparation for the practical exam after break.
Lab Instructions
Copy the "Assembler" folder off the Classes file server to the User Folder or to your diskette. This folder contains the stack "Apple MacPippin".
Familiarize yourself with the operation of the "Apple MacPippin"
stack. During this lab, we will develop a few simple assembly language programs
and test them with the MacPippin stack.
- Do lab exercise 2 on pp. 193-194.
- Write a PIPPIN program to copy the contents of cell 12 to cell 13.
After this program is run, cells 12 and 13 should contain the same values.
- Write a PIPPIN program to move the contents of cell 12 to cell
13. After this program is run, the contents of cell 12 should be set
to zero.
- Call one of us over and show us your work.
- Enter the PIPPIN programs you wrote for homework (Review
Question 5, p. 192) into the MacPippin stack and test them. For part a of
question 5, modify your program so that instead of tripling the value
currently in the accumulator, it triples the value contained in cell
12 and stores this value in cell 13. If your programs
don't work correctly, use MacPippin to go through the programs step by step
to help you debug your code.
- Call one of us over and show us your work.