x64 Assembly Tutorial 27: Calling C++ from ASM
In this, the 27th, tutorial, we will looking at the "C" calling convention from the Caller's point of view. This is not Assembly. It's the meaning of 'extern "C"' that we've been placing at the start of our procedures. Parameters used to be pushed onto the stack from right to left but nowadays the first four are passed by the registers RCX, RDX, R8 and R9 respectively. Stack space is still preserved for these parameters in the form of "Shadow Space". Shadow space is the space that the first four parameters would have occupied had they not been passed by registers. Once your in Assembly calling other procedures also written in Assembly you can do whatever you like including passing all parameters via whichever registers you want. This calling convention is to communicate with C++! Nearing the end of this tutorial I say 'this is exactly how the stack will look when we get it in ASM', please watch the next tutorial for a full explanation but I forgot that there will also be a return address on the stack!

x64 Assembly Tutorial 28: Stack Frames

x64 Assembly Tutorial 26: Intro to the Stack

x64 Assembly MultiThreading 1: Intro and Calling CreateThread

x64 Assembly Tutorial 11: Pointers and the LEA Instruction

How C Really Works

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Tips for C Programming

1986: How to Spot the Upper Class | That's Life! | BBC Archive

Why the Mongols Vanished After Conquering Everything

The Big Short (2015): The Jenga Scene – Explaining the Financial Collapse

Penny Helps Sheldon Solve His Equation | The Big Bang Theory

CppCon 2014: Mike Acton "Data-Oriented Design and C++"

x64 Assembly Tutorial 32: String Instructions 1, Store String and REP Prefix

Don't Hang Up On AI Scammers. Do THIS Instead.

x64 Assembly Tutorial 25: Assembly Adjust Brightness Coding

The Insane Genius of a Formula 1 Gearbox

Served in 5 Seconds! Japan’s $3 Soba Shop for Hungry Workers

Gus Gives Eladio A Lethal Gift | Salud | Breaking Bad

The French Do Not Care About Work

