Hi,
I'm learning asm and here's one of my (many) problems : I'd like to change the value of some index of an array. Let's say that :
- %eax contains my new value
- the top of the stack (ie (0)%esp) contains the index of the array
- -4(%ebp) contains the adress of the array.
I've tried movl %eax, (-4(%ebp),0(%esp),4)
but it did not work.
Worse, it throws a syntax error : bobi.s:15: Error: junk `(%ebp),0(%esp),4)' after expression
What is the correct syntax ? Thanks !