CS250 Midterm Review Guide
The midterm will be in-class on February 29.
Topics
- Binary Arithmatic
- ASCII, you don't have to memorize the table
- Memory and Bandwidth, not in much detail this time
- How circuits work (so if you had an example, you could figure out what it does!)
- Power (Units: watts, amps, volts, ohms) P = IV (power = current times voltage), V = IR (voltage = current times resistance)
- Parts of a Computer, don't have to memorize socket numbers.
- Gates and Logic
- Clocks and Memory, in principle
- Assembly Programming:
- Registers, know the x86 registers
- Common instructions like mov, push, pop, add, sub, call, jmp (and conditional variants), cmp, ret, mul, div
- Function calling conventions, know how these work and the first couple registers for x86-64 on Linux and where the return value ends up
- Stack frames (%rbp vs. %rsp)
- Triggering Interrupts
- Arrays and data items, like lab 4
- Not integrating C and assembly
- printf, will be used for "what does this print?" questions
- Not malloc
Notes
The test will be closed book, but you can bring a page of notes if you like. Any page is fine, written any way you like. It can be both sides or one side, handwritten or typed, any font size. If you have legal-size paper around, that's ok too. If you wanted to do both sides but dislike flipping pages, you can do two one-sided sheets instead.