John_123 0 Newbie Poster

Hey,

I have a very basic question regarding the stack in x86 assembly. If I’m correct the main operations on the stack are push and pop (I know there are others). Next to this the stack will grow (keep the location) when the program goes to a subroutine (call) and shrink when I return in the main program by using ret.
Now if I would want to initialize, address and finally ‘remove’ an array on a stack how would this work, and can someone give me an example of how the stack would look like then?

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.