“mov (%ebx,%eHow does “mov (%ebx,%eсHow does “mov (%ebx,%eсx,4),%eax” work?
The
complete memory addressing mode format in AT&T assembly is:offset(base, index, width)
смещение (база, индекс,масштаб)
offset = 0
base = ebx
index = eсx
width = 4
eax = *(uint32_t *)((uint8_t *)ebx + eсx * 4 + 0)
mov eax, [ebx+ecx*4] mov eax, [ebx+ecx*4] mov eax, [ebx+ecx*4] in NASM