Curriculum
Start with Linux userspace and build up to code that runs before the operating system. Basic C knowledge is helpful.
Development Environment and Toolchain
Set up NASM, Binutils, GCC and GDB on Arch Linux or WSL2.
Practice goal · Assemble, link, and inspect a Linux executable.
0 / 1 lessons complete
Your first Linux programComputer Fundamentals
Binary, hexadecimal, fixed-width integers, and the byte-addressed memory model.
Practice goal · Trace a little-endian value through memory.
PlannedCPU and x86-64 Architecture
Registers, the instruction pointer, flags, and the arithmetic logic unit.
Practice goal · Predict the effect of a partial-register write.
PlannedAssembly Language Fundamentals
NASM syntax, labels, directives, machine instructions, and ELF sections.
Practice goal · Match source instructions to disassembly.
PlannedData Movement and Memory Addressing
Operand widths, effective addresses, pointers, and sign or zero extension.
Practice goal · Index an array with base, index, and scale.
PlannedArithmetic, Logic and Control Flow
Integer arithmetic, bitwise operations, signed comparisons, and branches.
Practice goal · Implement an assembly calculator.
PlannedStack and Function Calling
Call and return, stack frames, alignment, and preserved registers.
Practice goal · Draw a stack frame and trace a nested call.
PlannedData Structures and Memory Management
Arrays, structures, layout, memory regions, and allocation.
Practice goal · Build a memory viewer for structured data.
PlannedLinux System Calls and C Interoperability
Linux system call convention, System V AMD64 ABI, and linking with C.
Practice goal · Call an assembly function from C.
PlannedDebugging and Program Analysis
GDB, instruction stepping, watchpoints, relocations, and ELF inspection.
Practice goal · Use symbols and disassembly to diagnose a program.
PlannedCPU Modes and Boot Process
Firmware, real mode, protected mode, long mode, GDT, and IDT.
Practice goal · Trace mode transitions in an isolated QEMU guest.
PlannedBootloader Development
Boot sector layout, firmware services, loading stages, and kernel handoff.
Practice goal · Build and debug a minimal bootloader in QEMU.
Planned