CS221 Final Exam Review

New Material

MIPS Assembly

  • text and data area
  • Labels
  • ALU instructions: add, addi, etc
  • Conditional Instructions: slt, sle, sge, gt
  • Jump Instructions: jal, jr
  • Branch Instructions: beqz, b
  • Load/Store: la, li, lw, sw
  • Using System Calls.
  • Simple subroutines (non-reentrant)
  • Reentrant Subroutines
  • Conditions (set and branch)
  • If statements
  • Loops

MIPS Concepts

  • Program Memory
  • Word-alignment
  • Little/Big Endian
  • Addressing Modes
  • Call stack
  • Instruction Formats
  • Stack and frame pointers.
  • Return addresses

C++ Concepts

  • Pointer v. object types.
  • Stack v. heap objects.
  • Create objects on the heap.
  • Free objects from the heap.
  • Use the -> for pointers.

You should be able to:


Previous Material