I wrote
macro wordstoreg arg1,arg2
{
if (arg1 eqtype 0) & (arg2 eqtype 0)
mov eax, (arg1)*65536+arg2
else
mov eax,arg1
shl eax,16
add eax,arg2
end if
}
start:
wordstoreg dword [start],dword [start]
This works, but this isn't compiled:
macro wordstoreg arg1,arg2
{
if (arg1 eqtype 0) & (arg2 eqtype 0)
mov eax, (arg1)*65536+(arg2) ;difference from previous
else
mov eax,arg1
shl eax,16
add eax,arg2
end if
}
start:
wordstoreg dword [start],dword [start]
In this case the question haven't sense, but how another similar macros had to be written?