Step Into Labs

Step Into x64 Assembly · Lesson 4 · Bits & Control Flow

Flags, Jumps & Loops

cmp, test, conditional jumps, signed vs unsigned, cmov and loops.

Part of Step Into x64 Assembly. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

After most arithmetic, the CPU updates flags in the rflags register. The important ones:

In this lesson

Missions

  1. The larger one
  2. Absolute value
  3. A real loop
  4. Signed vs unsigned
  5. Count the ones