flat assembler
Message board for the users of flat assembler.
Index
> Windows > Calling Convention Confusion |
Author |
|
revolution 07 Mar 2018, 09:22
MSVCRT is 100% C-call. You must restore the stack in your code.
Most of the Windows 32-bit API is std-call. The API will restore the stack. The only exception here is the vararg functions (wsprintf), which are c-call. Note that MSVCRT is not part of the official Windows API. |
|||
07 Mar 2018, 09:22 |
|
DimonSoft 07 Mar 2018, 10:49
Also remember that there are handy macros for calling functions of different calling conventions in the FASM package. MACRO\PROC32.inc is your choice. Saves a few lines of code and makes manual parameter counting unnecessary.
|
|||
07 Mar 2018, 10:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.