I have learned from this module,
1. How to familiar with stack operations.
2. How data are stored and removed from stack memory.
3. What is stacK
4. Push and Pop instruction
5. How SP changes with push and pop
6. How to do work stack pointer & offset address.
7. Save any data using stack for temporary
8. Learned about LIFO.
2.why we use stack segment?
Ans:
stack is used to hold similar elements like an array but, in an array elements can be added and removed from any where. Where as in stack new element can be added only at the top and removed only from the top that is works on LIFO (Last in fist out) principle. Stack holds the data temporarily and stores the return addresses used by the procedures. Stack is a segment where some register values can be stored so that it is not lost. In assembly language programming we have only four registers with which we can perform operations. These are AX, BX, CX and DX. But in many problems we may need a lot of registers. So we need to reuse these registers again and again. So for these reason we used stack segment.