1.What was your learning from this experiment module?
Ans: i have learned
(1) how to store data using stack segment
(2) how data is stored in stack using PUSH segment.
(3) how data is restored using POP segment.
(4)learned about LIFO system.LIFO means Last in First Out.
(5) learned about Offset address, stack pointer.
2.Why do we use stack segment?
Ans: We are using the stack segment to reuse the registers repeatedly. And store the multiple data in one register.
The stack segmemt contains the system stack, which is used as temporary storage. adding an element to the top of the stack is called PUSH.and retrieving an item from the top is known as POP
As we have limited registers. Thats why we can easily store any data in the stack temporarily using PUSH instruction and restore the data using POP instruction.