CS 232: Lab 8

Title image Spring 2026

Lab 8: Assembler Design

The purpose of this lab is to review a 2-pass assembler


Take a look at the assembly language design document. Let Ying or Lab TA know your answers to the following questions:

  1. Find out why the instruction symbol table has more entries than the one in Project 7.

  2. Rewrite the exercise program for lab 7 in the assembly language supported by this 2-pass assembler, using the instruction symbols and register symbols provided in the assembly language design.

    The exercise program for Lab 7 is: Try writing a program that loads register A with the number x000F, loads register B with the number 0x0001, and then adds register A to register B and puts the result in register C.

  3. In the first example in the design document, what is the line number associated with the label “start”?

  4. In the second example in the design document, what line numbers are associated with the labels “loop” and “breakout”?

Ask questions about the design.

When you feel you understand the design, go ahead and get started on the current project.