CSC231 Homework 1 Fall 2012

From dftwiki3
Revision as of 11:20, 7 September 2012 by Thiebaut (talk | contribs) (Mini Assignment #1)
Jump to: navigation, search

--D. Thiebaut 09:24, 7 September 2012 (EDT)


Mini Assignment #1

This homework is due Monday 9/10/12 at 11:00 a.m., at the beginning of class. It won't be graded but will be checked. The purpose of this homework is to make sure everybody in class gets familiar with the process of logging in the 231 accounts, and editing, assembling and linking assembly language programs.


Login

  • Use the 231a-xx account that was given to you in class. (Replace mentally the xx by the two letters that identify your account.)
  • On Windows machine, select Putty and enter beowulf.csc.smith.edu as the name of the host you want to connect to. Then when prompted for an account and password use your 231a-xx and password.
  • On Macs, open Terminal then type:
  ssh -Y 231a-xx@beowulf.csc.smith.edu
and when prompted give your 231a-xx password.

You should now be all set to create a program with emacs.

Your Assignment

Write an assembly language program called hw1.asm based on the Hello World! program we saw in class, that will print out this message on the screen:


----------------------------------
          Welcome to 
             CSC231 
----------------------------------

The actual number of dash characters, and the alignment is not important. Efficiency is not important either. Just a clean output is required.


How to Submit

From your 231 account, submit your file as follows:

   rsubmit hw1 hw1.asm



Troubleshooting

It is possible that if you are using ssh to connect to Beowulf the first time, and if you are using a Mac, you get a message of this form:

ssh 231a-xx@beowulf.csc.smith.edu
==================================================
   WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     
==================================================
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
bf:db:14:e6:a4:e0:f3:3d:d8:87:35:66:a9:35:68:fb.
Please contact your system administrator.
Add correct host key in /Users/alex/.ssh/known_hosts to get rid of this message. 
Offending key in /Users/xxxxx/.ssh/known_hosts:1
RSA host key for beowulf.csc.smith.edu has changed and you have requested strict checking. 
Host key verification failed.

In this case, use the editor of your choice and edit the file ~/.ssh/known_hosts and remove the lines that contains the word beowulf. Be careful, the lines are very long and wrap around to form blocks of 4 or 5 lines on your screen, so deleting one line will require a big block to disappear. Bold text


Misc. Information