Use the stack to implement subprograms using activation records.
Indirect addressing, function calls, pusha, popa, call, ret (PCASM Sections 4.1, 4.2, 4.3, 4.4)
Lecture notes Textbook reading
Activation records, ESP, EBP, variable arguments, return values (PCASM Sections 4.5.1)
Local variables, re-entrant subprograms, the stack (PCASM Sections 4.5.2)
Programs from the lecture notes
Source code
Manipulate the stack and local variables
Sample problems