This course shows how to link C and assembly object files, call C functions from assembly code, as well as write assembly inline in a C function.
Overview
Syllabus
Introduction
- Combining C with assembly language
- Course requirements
- Controlling the CPU with assembly and C
- Exploring assembly language
- Building assembly code
- Challenge: Build an assembly program
- Solution: Build an assembly program
- Viewing C as assembly
- Choosing C or assembly
- Challenge: Linking modules
- Solution: Linking modules
- Putting assembly language into C code
- Adding C to assembly
- Writing inline assembly
- Challenge: Constructing a dialog
- Solution: Constructing a dialog
- Passing arguments in assembly
- Returning a value in assembly
- Writing functions that pass and return values
- Challenge: Random range
- Solution: Random range
Taught by
Dan Gookin