使用FASM编译通过,生成 xxx.obj 文件
format coff
macro Obj Proc,nArg
{
if ~ nArg eq
public Proc as "_" # `Proc # "@" # `nArg
display "public: _" # `Proc # "@" # `nArg,0ah
else
public Proc as "_" # `Proc
display "public: _" # `Proc,0ah
end if
Proc:
}
macro CCall Proc,[Args]
{
common
size@ccall = 0
if ~ arg eq
reverse
pushd Args
size@ccall = size@ccall+4
common
end if
call Proc
if size@ccall
add esp,size@ccall
end if
}
macro SCall Proc,[Args]
{
common
if ~ a