Using MARS
To use the MARS simulator, you can either 1) download the Java jar file and save it in your home directory or 2) you can copy a desktop application icon to your Linux desktop which runs my copy of the simulator.
To add the icon to your Linux desktop, following the steps below:
- Login to your account (if you have not already done so).
- Open a terminal window.
- At the command-line prompt, enter
cd
to change to your home directory.
- Enter the following copy command at the command-line prompt
cp /home/scratch/necaise/share/Mars.desktop ./Desktop
This should place a 'Mars' icon on your desktop, which you can then double click to run the simulator.
Submitting your Program
To submit your MIPS assembly source file, you will need to use the shared folder through Google Apps (WMApps) which I shared with you earlier. This requires two main steps: creating a subfolder and uploading your source file to the new subfolder.
Create a Subfolder:
You must create a subfolder within your shared turnin folder which can be done following the steps below.
If you are familar with Google Documents, you can skip down to step 5 below.
- Login to WMApps just as you would to check your email.
- Select the 'documents' link at the top of the page.
- Near the bottom of the the left-hand column should be a link labeled 'Folders shared with me'. Click on the little triangle to the left of this label. You should now see your
cs304-xyz
(where xyz is your username) turnin folder.
- Click on your
cs304-xyz
turnin folder which should be empty.
- Create a sub folder within your turnin folder
- Click on the 'Create New' button near the top of the page, just under the 'Google Docs' logo.
- And select 'Folder'.
- Enter
hw2
for the name of the folder.
- Then click on the `Save' button.
|
Note
Do not set or change any permissions on the sub folder.
|
Upload Your File:
To upload file(s) to your new sub folder, following the steps below
- Click on the 'Upload' button near the top of the page, just under the 'Google Docs' logo.
- Browse and select the your
grades.asm
file.
- Then at the bottom of the page, click on the 'Destination Folder' button which provides a drop down list.
- Find and click on your
hw2
subfolder under your cs304-xyz
turnin folder.(Note: you may have to click on several little triangles to work your way down in the folder tree to find the correct subfolder.)
- Click on the 'Start Upload' button.
Your file should now be uploaded.
|
Note
You may also submit your solutions for the written part of the homework by uploading it to the same hw2 sub folder. If you upload a document, please use a short name such as hw2.pdf . In addition, any written document submitted for the course should be in either pdf or odt (openoffice) format.
|