Assembly Learning Lab

Curriculum

Start with Linux userspace and build up to code that runs before the operating system. Basic C knowledge is helpful.

MODULE 00 · LINUX USERSPACE

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 program
MODULE 01 · LINUX USERSPACE

Computer Fundamentals

Binary, hexadecimal, fixed-width integers, and the byte-addressed memory model.

Practice goal · Trace a little-endian value through memory.

Planned
MODULE 02 · LINUX USERSPACE

CPU and x86-64 Architecture

Registers, the instruction pointer, flags, and the arithmetic logic unit.

Practice goal · Predict the effect of a partial-register write.

Planned
MODULE 03 · LINUX USERSPACE

Assembly Language Fundamentals

NASM syntax, labels, directives, machine instructions, and ELF sections.

Practice goal · Match source instructions to disassembly.

Planned
MODULE 04 · LINUX USERSPACE

Data Movement and Memory Addressing

Operand widths, effective addresses, pointers, and sign or zero extension.

Practice goal · Index an array with base, index, and scale.

Planned
MODULE 05 · LINUX USERSPACE

Arithmetic, Logic and Control Flow

Integer arithmetic, bitwise operations, signed comparisons, and branches.

Practice goal · Implement an assembly calculator.

Planned
MODULE 06 · LINUX USERSPACE

Stack and Function Calling

Call and return, stack frames, alignment, and preserved registers.

Practice goal · Draw a stack frame and trace a nested call.

Planned
MODULE 07 · LINUX USERSPACE

Data Structures and Memory Management

Arrays, structures, layout, memory regions, and allocation.

Practice goal · Build a memory viewer for structured data.

Planned
MODULE 08 · LINUX USERSPACE

Linux 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.

Planned
MODULE 09 · LINUX USERSPACE

Debugging and Program Analysis

GDB, instruction stepping, watchpoints, relocations, and ELF inspection.

Practice goal · Use symbols and disassembly to diagnose a program.

Planned
MODULE 10 · BARE METAL

CPU Modes and Boot Process

Firmware, real mode, protected mode, long mode, GDT, and IDT.

Practice goal · Trace mode transitions in an isolated QEMU guest.

Planned
MODULE 11 · BARE METAL

Bootloader Development

Boot sector layout, firmware services, loading stages, and kernel handoff.

Practice goal · Build and debug a minimal bootloader in QEMU.

Planned

Search curriculum