Hi Frank,
I wrote a macro:
%macro testmacro 1
if %1, ==, NULL
invoke MessageBoxA, dword NULL, "null", 'ok', dword MB_OK
endif
%endmacro
But got a error: invalid combination of opcode and operands
If I chage it to:
%macro testmacro 1
mov eax, %1
if eax, ==, NULL
invoke MessageBoxA, dword NULL, "null", 'ok', dword MB_OK
endif
%endmacro
It work, why the parameter can not be compared directly?
Regards,
Freeman