如何使用 TASM 进行条件编译?

How to do conditional compilation with TASM?

我想了解在编译 TASM 程序时如何传递参数以便可选地编译代码部分,这相当于 C 中带有 -D 参数的#ifdef。 我如何使用 TASM 做到这一点?

The /d option defines a symbol for your source file, exactly as if it were defined on the first line of your file with the =directive. You can use this option as many times as you wanf on the command line.

感谢@Ped7g 的输入