CPE 315
Winter 2008
Professor Stearns
Laboratory Exercise #1
Due by the end of lab, 1/8/08


Notes:
  1. You may do this lab with one partner (one submission for both).
  2. You must use SIM for this lab.
  3. Your Linux login user/password is identical to your falcon account

Objectives:

Description:
  1. Boot a computer into Linux.

  2. Start the terminal window
    Menu path: Applications/System Tools/Terminal

  3. Run the 8 bit adder with the following command.
    /home/dstearns/simbin/add8

    Add each the following using the adder:
        FF      70        02      A0
      + FF    + 60      + 02    + B0
    

    Use a program called Take Screenshot to capture one of your additions.
    Menu path: Applications/Accessories/Take Screenshot

  4. Assume the addends are two's complement numbers.
    Discuss the results by doing the additions manually and explaining
    Show your work clearly; include the overflow and carry calculation.
    1. The values of Overflow and Carry
    2. Whether the answer is correct or not?
    3. Anything else of interest

  5. Now assume the addends are unsigned numbers.
    How are your results different?
    1. In the additions?
    2. In the discussion of results?
    3. (trick question) Explain clearly the difference between the two's complement and unsigned additions.

Deliverable
A professional report (see syllabus) containing screenshot output and manual calculations.


Last updated on 1/5/08