asm_dip/toolchain/fasmw17332/TOOLS/LIBC/CCALL.INC

24 lines
318 B
Plaintext
Raw Normal View History

2024-11-24 20:13:28 -08:00
macro ccall proc,[arg]
{ common
push ebp
mov ebp,esp
local size
size = 0
if ~ arg eq
forward
size = size + 4
common
sub esp,size
end if
and esp,-16
if ~ arg eq
add esp,size
reverse
pushd arg
common
end if
call proc
leave }