CS201 Lab: Introduction to QtSpim
Objective of this lab:
To investigate QtSpim and implement the SPIM Basic I/O
Preparation
Read lab lecture notes.
Lab Assignment
Write a SPIM assembly language program Peter.s.
The program will do the following:
- Prompt the user to enter his/her name by "Hello, what is your name?"
- The user will enter "Peter".
- The program will prompt the user again by "How old are you?"
- The user will enter 20. (Note: this will be read as an integer)
- The program will print out
Peter
is 20 years old.
(Note: this will have a newline character at the end to keep your output tidy.)
You will hand in the following:
- The source code in the file Peter.s
- Display the program code in the file Peter.pdf
- The screenshot to show the screen right after you loaded the Peter.s program.
- The screenshot of the console dislaying the results
- You are asked to submit one .pdf file and all the .s files. If you miss any one of them, you will get 0 marks.
Please note:
To make it easier for marking, you are required to submit the following files:
- One .pdf file and one .s file, they contain all the required components for the lab assignment.
- Missing any one of the files (.pdf or .s files) you will get zero for the assignment.
- Submitting with other file format such as .zip or .doc, you will lose 5 marks.
- This will apply to Lab #6 to Lab #9.
Copyright: Department of Computer Science, University of Regina.