Pre-Lecture Prep
Please spend an hour reading the chapters in the zyBook before class today. Complete the participation activities as you go. If you aren't done after an hour, feel free to stop where you are (as long as I've seen you've made an effort, you'll get credit for participation).
Announcements
- Homework 1 due Tuesday
- Office hours: by appointment (email me if none of those times work)
- I have posted a MIPS reference card which will be useful going forward
- (There's a bunch of stuff on it that won't make sense right now, but don't worry about it)
Learning Objectives and Outcomes
In this lecture, you will...
- listen to a short discussion about us switching gears from processors to MIPS
- complete challenge activities as a class and individually
- (if time) work together to install MARS for Lab 1
By the end of this lecture, you should be able to...
- add, subtract, multiply, and divide numbers in MIPS assembly
- write loops in MIPS assembly
In Class Work
- 2.3.1 Arithmetic with registers
addi
and li
(immediate instructions)
- Multiplication and division
- 2.3.2 Loading and storing from memory
- 2.5.1 Write branch conditions