Masm 常量按位运算

Masm Bitwise Operations on Constants

Masm 是否支持常量的按位运算?例如在 Nasm 你可以这样写:

%define foo 00010000b
%define bar 00000011b

...

mov r8b, foo | bar

我在 Masm 中尝试过:

foo equ 00010000b
bar equ 00000011b

...

mov r8b, foo | bar

导致:"Error A2044 invalid character in file"

MASM 的一些逻辑运算符是:

如需完整参考,请参阅 MASM operators 的官方文档。