CS201 Lab: Introduction to PCSpim
Objective of this lab:
To investigate PCSpim and implement the SPIM Basic I/O
Read lab lecture notes.
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
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 print out of the screen shot (print screen) to show the program has been successfully loaded
- The print out of the screen shot of the console dislaying the results
Copyright: Department of Computer Science, University of Regina.