======== START LECTURE #8 ========

Notes
  1. Can now get to homework solutions right from the home page. A password is still required.
  2. Syllabus added.
  3. Lectures through #7 now on course pages.
  4. Homework solutions through #6 now on course pages.
End of Notes

I type instructions (revisited)

addi (add immediate)

Example: addi $1,$2,100

slti (set less-than immediate)

Example slti $1,$2,50

lui (load upper immediate)

Example: lui $4,123

Homework: 3.1, 3.3, 3.4, and 3.5.

Chapter 4

Homework: Read 4.1-4.4

4.2: Signed and Unsigned Numbers

MIPS uses 2s complement (just like 8086)

To form the 2s complement (of 0000 1111 0000 1010 0000 0000 1111 1100)

Need comparisons for signed and unsigned.

sltu and sltiu

Like slt and slti but the comparison is unsigned.

Homework: 4.1-4.9