CPE 315
fall 2004
Laboratory #4
Due at the beginning of lecture, 10/11/02

Notes:
  1. This is an individual assignment.
  2. All submission and plagarism rules are in effect.
  3. Don't use any MIPS pseudoinstructions in this lab.
  4. You can assume there are no overflows generated by your program.


Objectives:

Files:
MIPS Demonstration Program
Run this yourself to confirm that you understand.

SPIM Simulator
Note there are versions for Windows and Linux. The Windows version requires no configuration work; you download an executable.

Reference:
Appendix A of our text has a complete manual for the MIPS ISA, XSPIM and its MIPS assembler.

Description:

  1. Write a MIPS program
    Write a program that reads in a set of integers, terminated by a 0.
    The program determines the smallest integer, the total number of integers and the number of even/odd integers.
    The results must be displayed on the XSPIM console window.

  2. Prove the program works
    Be sure you can run the program with this command line:
    xspim   -nopseudo -file lab4.asm

    Do screen prints of (at least 3 good) test cases that prove your program works.

Deliverables

A formal lab submission as described in the syllabus.


Last updated on 10/04/04