Computer Science 220
Assembly Language & Computer Architecture
Fall 2011, Siena College
Lecture 0x07: Advanced MIPS Programming
Date: Thursday, September 29, 2011
Agenda
- Announcements
- Lab discussion
- Unix Tip of the day: cal (check out 1752!)
- Lecture assignment 0x06 recap
- MIPS Programming
- subroutines and programs
- registers and the stack
Lecture Assignment 0x07
Due at the start of class, Tuesday, October 4.
Please submit answers to these questions
either as a hard copy (typeset or handwritten are OK) or by email to
jteresco AT siena.edu by the start of class. Please use a clear subject line
when submitting by email (e.g., CS 220 Lecture
Assignment 0x07, Joe Student). We will discuss these
questions at the start of class, so no late submissions are
accepted.
- COD Exercise 2.4, parts 1, 2, and 3, both a and b, p. 182. (3 points)
- COD Exercise 2.12, parts 1 and 2, both a and b, p. 190. (2 points)
- COD Exercise 2.16, parts 1 and 2, both a and b, p. 194. (2 points)
- COD Exercies 2.25, parts 1, 2, and 3, a only, p. 204. (3 points)
Recall the following when answering 2.25:
- beq and bne add an amount equal to the 16-bit
constant specified in the instruction followed by 2 0 bits to
the current program counter to get the address of the next
instruction.
- j replaced the bottom 28 bits of the program counter
with the 26-bit address specified in the instruction followed
by 2 0's to get the address of the next instruction.