CS 10, Fall 1997

Lab10: Assembly Language


Assignment for the Next Lab


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.

  1. Do lab exercise 2 on pp. 193-194.

  2. 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.

  3. 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.

  4. Call one of us over and show us your work.

  5. 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.

  6. Call one of us over and show us your work.