Lesson 22: What a Long, Strange Trip It's Been

Outline:

  1. Data movement
    • mov instruction variants
      • movb/movw/movl/movq
      • movs/movz
      • movabsq
    • push and pop
  2. Memory
    • arrays and structs
      • pointer math and D(rb, ri, s) operands
      • lea vs. mov
    • registers vs. the stack
    • function calls
  3. [If time] Other assembly miscellany
    • patterns
      • do while vs. while
      • recursion
      • switch statements
    • condition codes and setXX
    • test vs. cmp
  4. [If time] The new stuff
    • Unix commands
    • redirection via <, >, and |

Reading assignment (to be completed by the next class):

  • Nothing new, just review what we’ve done so far!