Lesson 13: Register Here
Outline:
- Understanding C programs
- memory organization
- example:
program_memory.c
- x86-64
- registers
- instructions
- quick reference
- other resources, including this summary
- Control flow
- unconditional jump:
jmp - conditional jump:
jXX - function call:
call - return:
ret
- unconditional jump:
- Assignment 6 overview
- VS Code extension:
13xforever.language-x86-64-assembly - example:
puzzle0.asm
- VS Code extension:
- Addressing modes
- immediate values
- registers
- memory
To do after class:
If you haven’t already, look through Lab 3: Assembly language to get started with the Compiler Explorer website.
Reading assignment (to be completed by the next class):
If you haven’t already:
- DiS Sec. 7.1: Assembly Basics
- DiS Sec. 7.2: Common Instructions
- DiS Sec. 7.4: Conditional Control and Loops