With ARM I can access a memory location like this:
LDR r0, [r1, #4]!
Meaning I want to load the value pointed to by r1, with an offset of 4 bytes, and the ! means that I want the value of r1 to be updated after this instruction with the new value (i.e., +4).
Is there an equivalent on x86 (AT&T syntax if possible)? For instance:
movl 4(%ebx), %eax
This will load the value pointed by %ebx with an offset of 4 bytes into %eax. How do I update the value of %ebx after the load though?
Thanks.