Solved MIPS exercises (IC1)
All the MIPS assembly exercises on SergioLearns, by topic and from easy to hard, following the IC1 syllabus: exam-style problems with solutions commented line by line, tested in QtSpim, and a practice quiz for every topic.
sergio@learns:~$ ls -l ~/exercises/mips --sort=level
total 6 topics · 18 exercises · 72 quiz questions
[ OK ] every solution is commented and was run before publishing
Exercises by topic
From scratchIC16 topics
- data-segment.sData segmenttheoryguided practicequizcheat sheet
- arithmetic-and-logic-instructions.sArithmetic and logic instructionstheoryguided practicequizcheat sheet
- branches-and-loops.sBranches and loopstheoryguided practicequizcheat sheet
- arrays-and-strings.sArrays and stringstheoryguided practicequizcheat sheet
- console-input-output.sConsole input and outputtheoryguided practicequizcheat sheet
- subroutines-and-the-stack.sSubroutines and the stacktheoryguided practicequizcheat sheet
How each exercises article is made
They are IC1 exam-style exercises, ordered from easy to hard. Every solution is commented instruction by instruction, with the registers that change and why, and it is tested in QtSpim. Before the solutions there is a «What is wrong here?» with the typical mistakes (the missing syscall, the wrong offset…) and, at the end, a practice quiz.
Before you start
If you have never programmed in MIPS, start by installing QtSpim and the guide on how to use QtSpim, or open the MIPS playground and try the code with nothing to install. The list above updates itself every time I publish a new topic.
