Step Into x64 Assembly · Lesson 4 · Bits & Control Flow
Flags, Jumps & Loops
cmp, test, conditional jumps, signed vs unsigned, cmov and loops.
- ~35 minreading and coding
- 5missions
- membersaccess
- x64 Assemblylanguage
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
- The flags register
- Conditional jumps
- if / else in assembly
- Loops
- Branch-free choices: cmov and setcc
Missions
- The larger one
- Absolute value
- A real loop
- Signed vs unsigned
- Count the ones