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
Please note:
To make it easier for marking, you are required to submit
one .pdf file and all the .s files.
The .pdf file will contain all the required components for the lab assignment including the code for the .s files.
This will apply to Lab #6 to Lab #9.
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
- 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.
Copyright: Department of Computer Science, University of Regina.