Step Into x64 Assembly · Lesson 9 · Windows x64
The Win64 Calling Convention in Depth
Floating-point arguments in xmm registers, mixed arguments, varargs, alignment, and what you see in real Win32 disassembly.
- ~45 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.
Every function in Windows, from your own code to kernel32 and ntdll, follows the same rules. Knowing them by heart is what makes Windows disassembly readable.
In this lesson
- One convention for every Windows x64 program
- Floating point with SSE
- Variadic functions (printf)
- Saved registers, revisited
- Alignment, precisely
- What this looks like in Win32 code
Missions
- Doubles in xmm registers
- Mixed arguments
- A fifth double
- A double through printf
- Prove the alignment