gpt4 book ai didi

assembly - 为什么 Visual Studio 组装 mov eax, [edx][ebx][ecx][edi] 没有提示?

转载 作者:行者123 更新时间:2023-12-04 14:42:35 26 4
gpt4 key购买 nike

在 Visual Studio 中,我写道:

mov eax, [edx][ebx][ecx][edi]

但它组装得很好。

为什么不是无效的有效地址?

最佳答案

这似乎是最近版本的 MASM 中的一个错误。

使用以下文件作为示例:

    .586

_TEXT SEGMENT USE32
mov eax, [edx][ebx][ecx][edi]
_TEXT ENDS
END

使用 MASM 6.11d 这会生成以下错误:
t213a.asm(4) : error A2030: multiple index registers not allowed

使用 MASM 8.00.50727.42 或更新版本没有错误,并且语句汇编为:
00000000: 8B 04 0F           mov         eax,dword ptr [edi+ecx]

所以 [edx][ebx][ecx][edi]不是有效的寻址模式。您正在使用的 MASM 版本中的一个错误是在它应该拒绝它作为错误时接受它。

关于assembly - 为什么 Visual Studio 组装 mov eax, [edx][ebx][ecx][edi] 没有提示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33596266/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com