When I read some disassembly code, for I am not up on AT&T syntax, I do not know what some code like (%esp,1) means.
11 printf("%x", a);
0x401386 <main+182>: movl $0x1,0x4(%esp,1)
0x40138e <main+190>: movl $0x40300d,(%esp,1)
0x401395 <main+197>: call 0x401810 <printf>
Could someone tell what it does mean? Thank you!
This wikibook seems to have some information about the GNU assembler and its AT&T syntax:
http://en.wikibooks.org/wiki/X86_Assembly/GAS_Syntax
I also found these two sources of documentation on Gas, but they don’t seem to be very clear or useful: