4/2: Assignment 1 and help file for turnin/cat process for submission is on the web now.
4/7: A few hints regarding assignment 1 has been posted on the web. See the assignment1.
4/20:
1. Please note the midterm date: Its on Thursday, 29th April2. Extension to homework 3 deadline: The new deadline is Wednesday, 28th April.
5/4:
1. We will not cover chapter six from the textbook and instead go right away to chapter 7.
5/10:
1. In homework 4, there is only one problem to be submitted. (Earlier we announced that there may be other problems)
5/14:
There will be discussion sessions on both Monday and Wednesday. (It was announced in the class that there will be none, but if you see this and want to attend, please attend.).
5/21:
ASSIGNMENT 6 IS ON THE WEB. Please DO NOT FORGET to put your name in your submission. It is necessary for us to know who corresponds to which account id.
6/1:
FINALS SCHEDULE: Note that finals are in MANDEVILLE AUDITORIUMSection A: 06/07/99: Monday: 11:30-2:29 pm: MANDEVILLE AUDITORIUM
Section B: 06/10/99: Thursday: 3:00 - 5:59 pm: MANDEVILLE AUDITORIUM
6/2: Extra hints for assignment 6.
To use printf:Printf is a built-in function, just like call mul or call div. It's used
just like it is in C or shell scripts, where you give first a constant
format string and then arguments (if necessary) to fill in the values.
For example...
printf ("Hello, my name is %s and I am %d years old.\n" , name , age ) ;
would translate into assembly like this:fmt: .asciz "Hello, my name is %s and I am %d years old.\n"
name: .asciz "Frank Sinatra"
age: .word 93set fmt , %o0
set name, %o1
mov age , %o2
call printf
nop
Even if you're just printing out a number, you still have to use a format
string:fmt: .asciz "%d\n"
And put it into %o0, and the number into %o1.
The "\n" is necessary to flush the output buffer; printf sometimes won't
work if you don't include it.