Lesson 14: Taking the Leap

Outline:

  1. Data movement
    • addressing modes, continued
      • recap: literals, registers, memory lookups
      • memory lookups with offsets/scaling
    • mov instructions
    • movz/movs/movabsq
  2. Basic block diagrams
    • if statements
    • do-while loops
    • while loops
    • for loops
    • function calls
  3. Translating conditional code from C to x86-64
    • jumping around
    • handout on translating if/else, do-while, while, for to x86-64
  4. Arrays
    • pointer math and the lea instruction
    • switch statements

Videos on arrays and switch statements (to be watched by next Wednesday):

Last year I made some videos:

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