如何在MASM中声明__m128i常量?

时间:2018-11-27 16:59:45

标签: assembly masm masm64

align(16)
__xmm@200020000a4f0a4f6621662170707070 xmmword 200020000a4f0a4f6621662170707070h

__xmm@200020000a4f0a4f6621662170707070 xmmword 0x200020000a4f0a4f6621662170707070

两者均失败,编译器说error A2138: invalid data initializer

1 个答案:

答案 0 :(得分:2)

我发现最好的解决方法是使用两个带有单独的LABEL定义的8字节初始化程序,例如:

__xmm@200020000a4f0a4f6621662170707070 LABEL xmmword
dq 0x6621662170707070, 0x200020000a4f0a4f