flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 31 Jul 2011, 21:51
Hi, welcome to the board
Is that what you really want? "stdcall dword [func]" and "invoke func", already push the parameters in reverse order (and of course procedures/functions defined with the "proc" macro do expect such order in the stack) |
|||
![]() |
|
dadius 31 Jul 2011, 22:34
my problem is i have big code in which i already pushed arguments in nearly all functions i wanna make it compatible
|
|||
![]() |
|
LocoDelAssembly 31 Jul 2011, 23:59
dadius, but have you pushed them in reverse order? If that is the case you are good already ("proc" **needs** arguments in reverse order).
|
|||
![]() |
|
revolution 01 Aug 2011, 06:30
The current macros proc and stdcall are designed to work with each other. The order of pushes is reversed by stdcall, and the order of reading by proc matches the order in memory that stdcall produces. Use like this:
Code: include 'win32ax.inc' proc Func, p1, p2 ;... stdcall Func, fname1, fname2 Code: include 'win32ax.inc' proc aFunction c, FileName:BYTE, FileName2:BYTE, ParameterCount:DWORD, ... ;... ccall aFunction, fname1, fname2, SomeCount, ... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.