News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

macro parameter

Started by korte, April 27, 2007, 11:46:23 AM

Previous topic - Next topic

korte


my macro:

testmac p1,p2
   mov edi,p1
   mov esi,p2


how to detect in the macro is p1 parameter=edi, when p1=edi skip mov edi,p1 instruction

MichaelW

IFDIFI <p1>,<edi>
    mov edi, p1
ENDIF

IFDIFI = IF DIFferent case Insensitive, so will work for "edi" or "EDI", etc
eschew obfuscation