I\'m to write a macro that takes E,NE,A,B... as a parameter and a single command i.e mov eax,ebx which would execute if the condition set by a prec
E,NE,A,B
mov eax,ebx
Try this:
mDoIf MACRO op, command LOCAL L1, L2 J&op short L1 jmp short L2 L1: call command L2: exitm endm .code start: mov eax, 1 cmp eax, 2 mDoIf l, DumpRegs invoke ExitProcess, 0 end start