I use the stdcall provided with fasm and the cdecl contributed by someone.

Does anyone have a macro for thiscall and fastcall?
Posted on 2003-04-27 22:09:54 by msmith
macro thiscall proc,object,[arg]{

if ~ arg eq
reverse pushd arg
end if
lea ecx,[object]
common
call proc }
Posted on 2003-04-28 08:55:48 by comrade
Many thanks!
Posted on 2003-04-28 09:08:57 by msmith
macro fastcall proc,[arg1],[arg2],[arg]{

if ~ arg eq
reverse pushd arg
end if
if ~ arg2 eq
mov edx,arg2
end if
if ~ arg1 eq
mov ecx,arg1
end if
common
call proc }


You may have to switch ecx and edx around.
Posted on 2003-04-28 09:20:53 by comrade
Nice work comrade.

I've got an error so I've changed the first line into:
macro fastcall proc,arg1,arg2,[arg]{


Thanks.
Posted on 2003-04-28 09:49:19 by pelaillo