Week 04
MIPS Programming
Rendering C in MIPS: Expressions
Ex1: Expression Evaluation
Rendering C in MIPS: Conditional Statements
Ex2: Mapping
if
Boolean Expressions
Ex3: Implementing Conjunctions
Ex4: Implementing Disjunctions
Rendering C in MIPS: Iteration (Loops)
Ex5: Mapping
while
Addressing Modes
Ex6: MIPS Addressing
Ex7: Check the results
Rendering C in MIPS: Functions
Function Calls
Function Calling Protocol
Structure of Functions
Function Prologue
Function Epilogue
Function call in MIPS:
Ex8: Function to compute 1+2+3+...+n
Ex9: Function to compute 1+2+3+...+n recursively
Aside: MIPS Branch Delay Slots
Produced: 24 Sep 2019