转自:
http://stackoverflow.com/questions/14900343/how-does-mov-ebx-eax-4-eax-work
The complete memory addressing mode format in AT&T assembly is:
offset(base, index, width)
So for your case:
offset = 0
base = ebx
index = eax
width = 4
Meaning that the instruction is something like:
PS:注意这里是将存在(base + index*width +offset)地址中的值存入eax中,别忘了取地址
eax = *(uint32_t *)((uint8_t *)ebx + eax * 4 + 0)
In a C-like pseudocode.