What does a comma in a parenthesis mean in the AT&T syntax for x86 assembly?

拥有回忆 提交于 2019-11-28 02:09:45
Carl Norum

The complete AT&T base/index register syntax is:

offset(base, index, multiplier)

Your offset field is 0, so you just have the (base, index, multiplier) part. In your case, you're comparing the contents of the eax register to the 32-bit value located at esi + (ebx * 4).

In the Intel syntax you might be more familiar with, this would be written as:

cmp [ebx*4 + esi], eax
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!