Lesson 17: The Function of Functions
Outline:
- Working with the stack
push/pop- function calls and the stack
- Assignment 6—please post/DM any questions on Slack!
After class:
Reminder: Quiz #6 on Monday
You will see these Quiz Learning Objectives:
- AI 1: addressing modes
- AI 2: move instructions
- AI 4: arithmetic instructions (new!)
- AI 5: jump instructions (new!)
- AI 6: stack (new!)
- NR 4: floating point
Videos to watch after class:
- video: using
gdbto explore theproc()function (Lab 6: Step 1) - video: local variables and the stack
- video: using
gdbto explore a function that callsproc()(Lab 6: Step 2) - video: using
gdbto solve an assembly puzzle (Lab 6: Step 3)
Reading assignment (to be completed by the next class):
- Watch the videos!
- DiS Sec. 7.6: Recursion
- DiS Sec. 7.10: Buffer Overflows