Procedures: Two Analogies


Procedures: A Seven-Step Program



Program ---> $a0
$a1
$a2
$a3
   
$ra ---> Procedure
    .
    .
    .
  return to program
   
$v0
$v1
<---
Program <---

New Instructions

New Registers


Alyce Brady, Kalamazoo College