Initall commit
This commit is contained in:
23
fasmw172/TOOLS/LIBC/CCALL.INC
Normal file
23
fasmw172/TOOLS/LIBC/CCALL.INC
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
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 }
|
||||
|
||||
Reference in New Issue
Block a user