You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, the first argument to a function specified as a thiscall (calling convention, attributes(thiscall)) should be placed into ECX, all other arguments are pushed to the stack, the callee does stack cleanup. It is a windows stdcall with the first argument passed to ecx. This feature would allow calling into C++ libraries.
// Calling this function:attributes(thiscall) voidf(void*this, inta, intb, intc);
// e.g., using this line: f((void*) 0xBEEFBEEF, 1, 2, 3)// Should produce this code:push3push2push1movecx, 0xBEEFBEEFcallf// the callee cleans up the stack
The text was updated successfully, but these errors were encountered:
Basically, the first argument to a function specified as a thiscall (calling convention, attributes(thiscall)) should be placed into ECX, all other arguments are pushed to the stack, the callee does stack cleanup. It is a windows stdcall with the first argument passed to ecx. This feature would allow calling into C++ libraries.
The text was updated successfully, but these errors were encountered: