






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document from the cs61c course at uc berkeley covers mips procedures, functions, decision making instructions, and memory allocation, with examples and exercises. It includes information about jal, jr, and register conventions.
Typology: Study notes
1 / 38
This page cannot be seen from the preview
Don't miss anything!































Lecturer PSOE, new dad Dan Garcia www.cs.berkeley.edu/~ddgarcia inst.eecs.berkeley.edu/~cs61c
There is one handout today at the front and back of the room! No. 11 Cal runs over the Aggies 41-13 are are now 4-0 for 1 st time since 1996. Justin Forsett ran for 235 yds, Joe Ayoob rushed for 3 TDs. Next Sat…Arizona @ home!
calbears.collegesports.com/sports/m-footbl/recaps/092405aaa.html
Address
$sp stack pointer
What C code properly fills in the blank in loop below?
do {i--;} while(__); Loop:addi $s0,$s0,-1 # i = i - 1 slti $t0,$s1,2 # $t0 = (j < 2) beq $t0,$0 ,Loop # goto Loop if $t0 == 0 slt $t0,$s1,$s0 # $t0 = (j < i) bne $t0,$0 ,Loop # goto Loop if $t0 != 0 1: j < 2 && j < i 2: j ≥ 2 && j < i 3: j < 2 && j ≥ i 4: j ≥ 2 && j ≥ i 5: j > 2 && j < i 6: j < 2 || j < i 7: j ≥ 2 || j < i 8: j < 2 || j ≥ i 9: j ≥ 2 || j ≥ i 0: j > 2 || j < i