ECE/CS 250: MIPS assembly clinic

On 22 Sept 2017, I gave a tutorial session on MIPS assembly out of class. I attempted to take a video, but due to technical issues (CamStudio is a bad program), only the audio was recorded. Here's a script with screenshots so you can follow along with the audio.

Materials

MP3 file is here. Embedded player:

ScreenshotSource file(s)Description
pic1prog1.c, prog1.sSide-by-side C and Assembly for a simple loop
pic2-Running the simple C program
pic3ternary.txtExplaining the ternary operator (c?a:b)
pic4prog1.s in QtSpimQtSpim interface
pic5-Output of prog1 in QtSpim
pic6-Explaining I-type instruction encoding
pic7prog2.c, prog2.sSide-by-side C and Assembly for some linked list code
pic8malloc.sExplaining malloc as if it's just a function that does an sbrk syscall (don't use this code directly; it's silly!)

Timeline

Clicking a timestamp will seek the embedded audio player above to that point.