AsAssembly · Lesson 5 of 10
Control Flow & Loops
Assembly has no if/else, no for loops. It has unconditional jumps (`jmp`) and conditional jumps that read the FLAGS register. Every higher-level control structure is built from these two primitives.
◆ Note
Labels starting with `.` (like `.loop`, `.skip`) are local labels — they're scoped to the enclosing non-local label. This avoids name collisions in large files and is the conventional style in NASM.
Labels starting with `.` (like `.loop`, `.skip`) are local labels — they're scoped to the enclosing non-local label. This avoids name collisions in large files and is the conventional style in NASM.