When assembling my assembly routine, I want to have a section of conditional assembly which is only included if assembly is occurring via ML.EXE (from the Windows command prompt), and not include that section if it's being assembled within the Visual Studio app (by clicking the Local Windows Debugger button). For example, I could pass some argument to ML.EXE which an IF statement in the assembly routine could detect the presence of. Or I could set a Windows environment variable only when I'm running ML.EXE -- similarly, the IF statement would read the environment variable and decide to assemble (or not) the conditional section based on the environment variables contents. For example, something like this:
; Include the following statements if we're being assembled by ML.EXE:
IF "%isRunUnderML%" == "1"
statement
statement
ENDIF
Thanks for any leads. / Rav