In assembly, say I have an array of however many elements each with a different character stored in it. At the end of the program I would like to clear all the elements of the array so that I have an empty array. How can this be done? Thanks.

I'm saying that lazy coding habits lead to problems which could have been avoided.Sure, in this simple example, offset works just fine.Learning to avoid hardcoded addresses/offsets is a good habit, and will always work, in all cases.It will also eliminate the upcoming question of "how come offset won't work for local arrays".