Step Into x64 Assembly · Lesson 8 · Windows x64
Calling Functions
RIP-relative data, shadow space, a fifth argument, and calling C and Win32 functions.
- ~40 minreading and coding
- 4missions
- 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.
Inside the callee, after call has pushed the return address, the fifth argument is at [rsp + 40]: 8 for the return address plus 32 of shadow space.
In this lesson
- The Windows x64 calling convention, all of it
- The standard frame
- Data and RIP-relative addressing
- Calling C and Win32 functions
Missions
- Hello from assembly
- Call printf
- Beyond four arguments
- Call the Win32 API