The expression *pointr is what is called a dereferencing of a pointer. What this means is that the pointer is followed to the object that it points to and that object is fetched and used. This happens in instructions 8 through 10, leaving the value in A. Next we add SUM to that value and store it back into SUM. No elements of the array are changed in this program. Then the pointer's value is increased by 1 so that it will point to the next element of the array. This takes 3 instructions, load, add and store, as does adding 1 to the loop counter. |