I have an array 4 ints at %r12. I'm assuming that the first element is just at %r12. So if I wanted to add a 32 bit value 1 to it, would I use the following code?
addl $1, (%r12)
How do I move to the other elements in the array to access them? Example, to add 1 to the second element, would I write
addl $1, 4(%r12)